From 9b6a9e33d8d07753d83e534685dfec39e3200c4b Mon Sep 17 00:00:00 2001 From: blackboxo <592276898@qq.com> Date: Tue, 29 Sep 2020 20:41:09 +0800 Subject: [PATCH] fix --- ngui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ngui.py b/ngui.py index 53ddc14..89018b6 100644 --- a/ngui.py +++ b/ngui.py @@ -277,8 +277,7 @@ def __init__(self): class MainWindow(Window): - config_exists = False - + def deal_emit_slot(self, set_status): if set_status and not self.config_exists: self.setSuccessinfo("已经准备好,可以开始了!") @@ -444,6 +443,7 @@ def __init__(self): self._frame() self._eventfilter() self.doFadeIn() + self.config_exists = True # 判断配置文件是否存在 if not os.path.exists(working_dir + "/config.json"):