[gnome-tweak-tool] Add groups only if they have tweaks
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool] Add groups only if they have tweaks
- Date: Fri, 3 May 2013 22:00:05 +0000 (UTC)
commit 389642c44e047ab53c69aa306ceca2f7d3f4f443
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]