优化GUI程序,加入线程池,避免翻页卡死现象发生。
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user