change: suppress missing shortcuts message

This commit is contained in:
aclist committed 2026-10-26 17:19:56 +09:00
1 parent 100cb43afc
commit 5fb10d9758
1 file changed
+1
+1
View File
@@ -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)