mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 11:42:44 +08:00
fix: 删除插件之后错误的顺序刷新逻辑
This commit is contained in:
parent
e0f8a04f8e
commit
d56163b19b
|
@ -78,7 +78,7 @@ def load_settings():
|
|||
settings["order"].append(plugin_name)
|
||||
settings_modified = True
|
||||
|
||||
apply_settings(settings)
|
||||
|
||||
if settings_modified:
|
||||
dump_settings()
|
||||
|
||||
apply_settings(settings)
|
||||
|
|
|
@ -79,9 +79,9 @@ def load_switch():
|
|||
}
|
||||
switch_modified = True
|
||||
|
||||
# 应用开关数据
|
||||
apply_switch(switch)
|
||||
|
||||
# 如果switch有修改,保存
|
||||
if switch_modified:
|
||||
dump_switch()
|
||||
|
||||
# 应用开关数据
|
||||
apply_switch(switch)
|
||||
|
|
Loading…
Reference in New Issue
Block a user