fix(flash-gui): done 事件后清空 proc 句柄, 修复一次操作后永久忙碌

This commit is contained in:
2026-09-14 19:35:38 +08:00
parent dccc7198f4
commit 2cbb0fec5b
+2 -1
View File
@@ -33,7 +33,7 @@ BOLD = ('Microsoft YaHei UI', 13, 'bold')
TITLE_FONT = ('Microsoft YaHei UI', 18, 'bold') TITLE_FONT = ('Microsoft YaHei UI', 18, 'bold')
APP_NAME = 'DAPLink Flash' APP_NAME = 'DAPLink Flash'
APP_VERSION = '2.0.0' APP_VERSION = '2.0.1'
REPO_URL = 'https://gitea.hulk.wang/hulk/gd32e230f8_firmware_merge_tool' REPO_URL = 'https://gitea.hulk.wang/hulk/gd32e230f8_firmware_merge_tool'
OK_BLUE = '#3B8ED0' OK_BLUE = '#3B8ED0'
@@ -515,6 +515,7 @@ class App(ctk.CTk):
else: else:
self._log('[失败] %s (退出码 %d)' % (title, code)) self._log('[失败] %s (退出码 %d)' % (title, code))
self._set_status('%s 失败' % title) self._set_status('%s 失败' % title)
self.proc = None # 释放占用, 允许下一次操作
self._busy(False) self._busy(False)
self._save() self._save()
except queue.Empty: except queue.Empty: