mirror of
https://github.com/aclist/dztui.git
synced 2026-10-29 06:02:51 +01:00
feat: uninstall wizard WIP
This commit is contained in:
1 parent
63c2b5acd4
commit
93d870b5bf
5 files changed
+293
-19
No files matched your search
@@ -160,6 +160,13 @@ class Shortcuts:
|
||||
NEW_ENTRY["tags"] = {}
|
||||
return NEW_ENTRY
|
||||
|
||||
def delete_shortcut(self, start_path: Path) -> None:
|
||||
for s in self.shortcuts["shortcuts"]:
|
||||
if self.shortcuts[s]["StartDir"] == str(start_path):
|
||||
del self.shortcuts[s]
|
||||
break
|
||||
self.save_shortcuts()
|
||||
|
||||
def save_shortcuts(self) -> None:
|
||||
try:
|
||||
backup = self.shortcuts_path.with_suffix(".vdf.bak")
|
||||
|
||||
Reference in new issue
Block a user