Quellcode durchsuchen

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

ChenYL vor 2 Jahren
Ursprung
Commit
647a85e6d4
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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.configPath = conf['path']['aggConfig']
         self.config = utils.load_json(self.configPath)
         self.config = utils.load_json(self.configPath)
-        if self.config and self.config['targetFilePath']:
+        if self.config:
             self.targetFilePath.setText(self.config['targetFilePath'])
             self.targetFilePath.setText(self.config['targetFilePath'])
-        self.load()
+            self.load()
 
 
     def bind(self):
     def bind(self):
         self.selectFileBtn.clicked.connect(self.selectFile)
         self.selectFileBtn.clicked.connect(self.selectFile)