diff --git a/source/core/handlers/extraction_handler.py b/source/core/handlers/extraction_handler.py index 27ffe4d..3c36520 100644 --- a/source/core/handlers/extraction_handler.py +++ b/source/core/handlers/extraction_handler.py @@ -111,7 +111,7 @@ class ExtractionHandler: else: # 用户选择停止,保持窗口启用状态 if hasattr(self.main_window, 'window_manager'): - self.main_window.window_manager.change_window_state(self.main_window.window_manager.STATE_READY) + self.main_window.window_manager.change_window_state(self.main_window.window_manager.STATE_READY) # 通知DownloadManager停止下载队列 self.main_window.download_manager.on_extraction_finished(False) return diff --git a/source/core/managers/cloudflare_optimizer.py b/source/core/managers/cloudflare_optimizer.py index 83b8fdd..3ede98f 100644 --- a/source/core/managers/cloudflare_optimizer.py +++ b/source/core/managers/cloudflare_optimizer.py @@ -334,7 +334,7 @@ class CloudflareOptimizer: # 恢复主窗口状态 self.main_window.setEnabled(True) if hasattr(self.main_window, 'window_manager'): - self.main_window.window_manager.change_window_state(self.main_window.window_manager.STATE_READY) + self.main_window.window_manager.change_window_state(self.main_window.window_manager.STATE_READY) return False # 用户点击了继续,重新禁用主窗口 @@ -406,7 +406,7 @@ class CloudflareOptimizer: # 恢复主窗口状态 self.main_window.setEnabled(True) if hasattr(self.main_window, 'window_manager'): - self.main_window.window_manager.change_window_state(self.main_window.window_manager.STATE_READY) + self.main_window.window_manager.change_window_state(self.main_window.window_manager.STATE_READY) return False else: QtWidgets.QMessageBox.critical( @@ -416,7 +416,7 @@ class CloudflareOptimizer: ) # 恢复主窗口状态 if hasattr(self.main_window, 'window_manager'): - self.main_window.window_manager.change_window_state(self.main_window.window_manager.STATE_READY) + self.main_window.window_manager.change_window_state(self.main_window.window_manager.STATE_READY) return False # 用户点击了继续,重新禁用主窗口