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