Skip to content

Commit 0df1eb2

Browse files
author
John Doe
committed
fix(updater): 将exit_app改为quit以正确关闭应用
使用quit方法替代exit_app来确保应用能够正确关闭,避免潜在的内存泄漏问题
1 parent 1a9fb15 commit 0df1eb2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

workday_timer/updater/updater.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def check_download_status():
269269
env = os.environ.copy()
270270
env['PATH'] = env.get('PATH', '') + r';C:\Windows\System32;C:\Windows\SysWOW64'
271271
subprocess.Popen(updater_script, shell=True, env=env)
272-
app.exit_app()
272+
app.quit()
273273

274274
status_check_timer.timeout.connect(check_download_status)
275275
status_check_timer.start(100) # Check every 100ms

0 commit comments

Comments
 (0)