Add new translation key for 'remove_directory_failed' in English, Simplified Chinese, and Traditional Chinese locales to enhance error messaging consistency.

This commit is contained in:
yeongpin
2025-03-28 19:26:58 +08:00
parent 4587fd9373
commit 1c1174fa6c
4 changed files with 10 additions and 7 deletions

View File

@@ -91,7 +91,8 @@ class AutoUpdateDisabler:
except Exception as e:
print(f"{Fore.RED}{EMOJI['ERROR']} {self.translator.get('update.remove_directory_failed', error=str(e)) if self.translator else f'删除目录失败: {e}'}{Style.RESET_ALL}")
return False
# 即使删除失败,也返回 True继续执行下一步
return True
def _clear_update_yml_file(self):
"""Clear update.yml file"""
@@ -169,9 +170,8 @@ class AutoUpdateDisabler:
if not self._kill_cursor_processes():
return False
# 2. Delete directory
if not self._remove_updater_directory():
return False
# 2. Delete directory - 即使失败也继续执行
self._remove_updater_directory()
# 3. Clear update.yml file
if not self._clear_update_yml_file():