From d56163b19bf24be85737613f51902f790c8a6cb2 Mon Sep 17 00:00:00 2001 From: Rock Chin <1010553892@qq.com> Date: Tue, 14 Feb 2023 18:30:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E4=B9=8B=E5=90=8E=E9=94=99=E8=AF=AF=E7=9A=84=E9=A1=BA=E5=BA=8F?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/plugin/settings.py | 4 ++-- pkg/plugin/switch.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/plugin/settings.py b/pkg/plugin/settings.py index 474decc..f68ef2c 100644 --- a/pkg/plugin/settings.py +++ b/pkg/plugin/settings.py @@ -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) diff --git a/pkg/plugin/switch.py b/pkg/plugin/switch.py index ea3441f..fbe2505 100644 --- a/pkg/plugin/switch.py +++ b/pkg/plugin/switch.py @@ -79,9 +79,9 @@ def load_switch(): } switch_modified = True + # 应用开关数据 + apply_switch(switch) + # 如果switch有修改,保存 if switch_modified: dump_switch() - - # 应用开关数据 - apply_switch(switch)