优化GUI程序,加入线程池,避免翻页卡死现象发生。

This commit is contained in:
2025-12-03 14:52:37 +08:00
parent 40e90ac7c2
commit 5b31827740
3 changed files with 221 additions and 41 deletions
+4
View File
@@ -515,6 +515,10 @@ class DataManagementApp:
"""窗口关闭事件"""
result = messagebox.askyesno("确认", "确定要退出系统吗?")
if result:
# 清理图片加载器资源
from utils.image_loader import cleanup_resources
cleanup_resources()
# 关闭数据库连接
self.mysql_manager.close()
self.root.destroy()