MCPcopy Index your code
hub / github.com/BasicProtein/AugmentCode-Free / closeEvent

Method closeEvent

gui_qt6/main_window.py:133–144  ·  view source on GitHub ↗

窗口关闭事件

(self, event)

Source from the content-addressed store, hash-verified

131 self._show_main_page()
132
133 def closeEvent(self, event):
134 """窗口关闭事件"""
135 # 如果有正在运行的工作线程,先取消
136 if hasattr(self, 'main_page') and self.main_page and self.main_page.current_worker:
137 self.main_page.current_worker.cancel()
138 self.main_page.current_worker.wait(1000) # 等待最多1秒
139
140 # 保存窗口几何信息
141 geometry = f"{self.width()}x{self.height()}"
142 self.config_manager.set_window_geometry(geometry)
143
144 event.accept()
145
146
147class AugmentCodeApp:

Callers

nothing calls this directly

Calls 2

cancelMethod · 0.80
set_window_geometryMethod · 0.80

Tested by

no test coverage detected