[Xfce4-commits] [apps/xfce4-panel-profiles] 37/162: Do not return duplicate data directories

noreply at xfce.org noreply at xfce.org
Fri Jul 13 13:08:56 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 5a42a93712a72cde64a9d1845130b16135964a58
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Sun Sep 20 10:34:24 2015 -0400

    Do not return duplicate data directories
---
 xfpanel-switch/xfpanel-switch.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xfpanel-switch/xfpanel-switch.py b/xfpanel-switch/xfpanel-switch.py
index 28df7b8..86cb452 100644
--- a/xfpanel-switch/xfpanel-switch.py
+++ b/xfpanel-switch/xfpanel-switch.py
@@ -124,7 +124,7 @@ class XfpanelSwitch:
         path = os.path.join(GLib.get_user_data_dir(), self.data_dir)
         if os.path.isdir(path):
             dirs.append(path)
-        return dirs
+        return list(set(dirs))
 
     def get_saved_configurations(self):
         results = []

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list