[gnome-tweak-tool/gnome-3-8] Add groups only if they have tweaks



commit 3d3adcb640fc6921be620d8229b520430e9376d3
Author: Joaquim Rocha <jrocha redhat com>
Date:   Fri May 3 13:36:31 2013 +0200

    Add groups only if they have tweaks
    
    https://bugzilla.gnome.org/show_bug.cgi?id=699572

 gtweak/tweakmodel.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtweak/tweakmodel.py b/gtweak/tweakmodel.py
index 1e83982..2e52db7 100644
--- a/gtweak/tweakmodel.py
+++ b/gtweak/tweakmodel.py
@@ -151,7 +151,8 @@ class TweakModel(Gtk.ListStore):
             tweaks.extend( getattr(mod, "TWEAKS", []) )
 
         for g in groups:
-            self.add_tweak_group(g)
+            if g.tweaks:
+                self.add_tweak_group(g)
 
         for t in tweaks:
             self.add_tweak_auto_to_group(t)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]