mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-16 23:17:21 +08:00
Fix: Clear stash after saving config
This commit is contained in:
2
gui.py
2
gui.py
@@ -329,9 +329,11 @@ class AlasGUI:
|
|||||||
config = read_file(filepath_config(self.alas_name))
|
config = read_file(filepath_config(self.alas_name))
|
||||||
for k in modified.keys():
|
for k in modified.keys():
|
||||||
deep_set(config, k, modified[k])
|
deep_set(config, k, modified[k])
|
||||||
|
logger.info(f'Save config {filepath_config(self.alas_name)}, {dict_to_kv(modified)}')
|
||||||
write_file(filepath_config(self.alas_name), config)
|
write_file(filepath_config(self.alas_name), config)
|
||||||
toast(t("Gui.Toast.ConfigSaved"),
|
toast(t("Gui.Toast.ConfigSaved"),
|
||||||
duration=1, position='right', color='success')
|
duration=1, position='right', color='success')
|
||||||
|
modified = {}
|
||||||
break
|
break
|
||||||
|
|
||||||
def _alas_thread_put_log(self):
|
def _alas_thread_put_log(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user