소스 검색

feat:聚合分析界面,优化启动读取

ChenYL 2 년 전
부모
커밋
647a85e6d4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/ui/AggAnalyseModeAndView.py

+ 2 - 2
src/ui/AggAnalyseModeAndView.py

@@ -31,9 +31,9 @@ class AggAnalyseModeAndView(QWidget, Ui_Form):
         # 获取历史使用记录
         self.configPath = conf['path']['aggConfig']
         self.config = utils.load_json(self.configPath)
-        if self.config and self.config['targetFilePath']:
+        if self.config:
             self.targetFilePath.setText(self.config['targetFilePath'])
-        self.load()
+            self.load()
 
     def bind(self):
         self.selectFileBtn.clicked.connect(self.selectFile)