From b1c6d207f946466a0f98c69613be5e9ee9e814ff Mon Sep 17 00:00:00 2001 From: YCHONG <9068301+iamhyc@users.noreply.github.com> Date: Wed, 16 Nov 2022 20:09:24 +0800 Subject: [PATCH 1/2] fix wallpaper set call --- settings_utils/wallpaper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings_utils/wallpaper.py b/settings_utils/wallpaper.py index ee80d6b..dd5a9cc 100755 --- a/settings_utils/wallpaper.py +++ b/settings_utils/wallpaper.py @@ -26,7 +26,7 @@ def get_all_status(self): return self.get_wallpaper_status() def set_all_status(self, status): - return self.set_wallpaper_status + return self.set_wallpaper_status(status) pass From 630cf34e73cd802903b3a834a71b618f2868b40e Mon Sep 17 00:00:00 2001 From: iamhyc Date: Thu, 24 Nov 2022 20:24:23 +0800 Subject: [PATCH 2/2] update api --- package.json | 2 +- settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3895c19..68635a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "desktop-settings", - "version": "0.2.0", + "version": "0.3.0", "description": "VDM plugin for bridging gap of desktop-related settings for common DEs.", "keywords": [ "desktop", "dde-kwin", "gnome-shell" diff --git a/settings.py b/settings.py index 51e5ef7..c4a4b02 100755 --- a/settings.py +++ b/settings.py @@ -52,7 +52,7 @@ def onSave(self, stat_file): json.dump(records, f) return 0 - def onResume(self, stat_file): + def onResume(self, stat_file, new): ## load stat file with failure check with open(stat_file, 'r') as f: _file = f.read().strip()