mirror of
https://github.com/aclist/dztui.git
synced 2026-10-31 23:22:44 +01:00
change: suppress missing shortcuts message
This commit is contained in:
1 parent
100cb43afc
commit
5fb10d9758
1 file changed
+1
@@ -173,6 +173,7 @@ class Shortcuts:
|
|||||||
self.save_shortcuts()
|
self.save_shortcuts()
|
||||||
|
|
||||||
def save_shortcuts(self) -> None:
|
def save_shortcuts(self) -> None:
|
||||||
|
if self.shortcuts_path.is_file():
|
||||||
try:
|
try:
|
||||||
backup = self.shortcuts_path.with_suffix(".vdf.bak")
|
backup = self.shortcuts_path.with_suffix(".vdf.bak")
|
||||||
shutil.copy(self.shortcuts_path, backup)
|
shutil.copy(self.shortcuts_path, backup)
|
||||||
|
|||||||
Reference in new issue
Block a user