This commit is contained in:
2026-01-04 17:46:48 +08:00
parent 988947aa1a
commit 5a26f5f7b3
13 changed files with 170 additions and 94 deletions
+1 -10
View File
@@ -97,17 +97,8 @@ class ConfigWindow:
return
# 保存配置
config = configparser.ConfigParser()
config['config'] = {
'miniQMTPath': mini_qmt_path.replace('\\', '/'),
'account_no': account_number,
'log_level': 'INFO'
}
config_path = sdConstants.get_config_path()
try:
with open(config_path, 'w') as configfile:
config.write(configfile)
sdConstants.save_config(mini_qmt_path.replace('\\', '/'), account_number)
messagebox.showinfo("成功", "配置已保存")
self.root.destroy()
except Exception as e: