fix: 删除插件之后错误的顺序刷新逻辑

This commit is contained in:
Rock Chin 2023-02-14 18:30:55 +08:00
parent e0f8a04f8e
commit d56163b19b
2 changed files with 5 additions and 5 deletions

View File

@ -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)

View File

@ -79,9 +79,9 @@ def load_switch():
}
switch_modified = True
# 应用开关数据
apply_switch(switch)
# 如果switch有修改保存
if switch_modified:
dump_switch()
# 应用开关数据
apply_switch(switch)