[Xfce4-commits] [apps/xfce4-panel-profiles] 139/162: Supply a default value when querying the source.
noreply at xfce.org
noreply at xfce.org
Fri Jul 13 13:10:38 CEST 2018
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-panel-profiles.
commit e640d39374538260cc620bee2de4a428c1ef451b
Author: Alistair Buxton <a.j.buxton at gmail.com>
Date: Fri Apr 13 22:32:13 2018 +0100
Supply a default value when querying the source.
---
xfpanel-switch/panelconfig.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xfpanel-switch/panelconfig.py b/xfpanel-switch/panelconfig.py
index 75fab2a..22a9383 100644
--- a/xfpanel-switch/panelconfig.py
+++ b/xfpanel-switch/panelconfig.py
@@ -122,7 +122,7 @@ class PanelConfig(object):
self.properties.pop(param, None)
def get_desktop_source_file(self, desktop):
- if self.source is None:
+ if getattr(self, 'source', None) is None:
path = os.path.join(
GLib.get_home_dir(), '.config/xfce4/panel/', desktop)
return open(path, 'rb')
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list