From 408d8c0b57355738636fdbd87611ec86ea9fcaf0 Mon Sep 17 00:00:00 2001 From: zcwBit Date: Fri, 18 Jul 2025 23:53:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E6=98=BE?= =?UTF-8?q?=E7=A4=BAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/ProjectModel/ProjectManage.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/model/ProjectModel/ProjectManage.py b/model/ProjectModel/ProjectManage.py index 8434602..ee5cb64 100644 --- a/model/ProjectModel/ProjectManage.py +++ b/model/ProjectModel/ProjectManage.py @@ -122,10 +122,13 @@ class ProjectManage(object): # 切换工程 currentDB = Globals.getValue('currentProDB') currentProtocolManage = Globals.getValue('protocolManage') + currentHistoryDB = Globals.getValue('historyDBManage') if currentDB: currentDB.close() - if Globals.getValue('protocolManage'): + if currentProtocolManage: currentProtocolManage.shutdown() + if currentHistoryDB: + currentHistoryDB.close() Client.initDB()