(self, status)
| 832 | self.root.destroy() # 修改为 destroy 以立即关闭窗口和主循环 |
| 833 | |
| 834 | def update_icon_status(self, status): |
| 835 | if hasattr(self, 'icon') and self.icon and self.icon._running: |
| 836 | try: |
| 837 | self.icon.icon = self.icon_image[status] # 直接设置图标 |
| 838 | except Exception as e: |
| 839 | print(f"更新图标失败: {e}") |
| 840 | |
| 841 | def update_client_settings(self): |
| 842 | """更新 ImageToMarkdown 处理器的设置""" |
no outgoing calls
no test coverage detected