fix: 修复更新器使用mirrorc下载时删除已弃用的文件卡死

This commit is contained in:
DLmaster361
2025-04-20 11:07:41 +08:00
parent 5c8eebf12c
commit 5db9d934b2
2 changed files with 7 additions and 2 deletions

View File

@@ -517,7 +517,7 @@ class DownloadManager(QDialog):
info: Dict[str, List[str]] = json.load(f)
if "deleted" in info:
for file_path in info:
for file_path in info["deleted"]:
(self.app_path / file_path).unlink()
(self.app_path / "changes.json").unlink()