[gnome-tweak-tool] Make sure not-loaded tweaks are hidden
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool] Make sure not-loaded tweaks are hidden
- Date: Tue, 7 Aug 2012 14:13:06 +0000 (UTC)
commit f98a842a6d673bd23d2e65a3708222890fa41ddf
Author: John Stowers <john stowers gmail com>
Date: Tue Aug 7 14:33:57 2012 +0200
Make sure not-loaded tweaks are hidden
gtweak/tweakmodel.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtweak/tweakmodel.py b/gtweak/tweakmodel.py
index 2f35518..62ccf1c 100644
--- a/gtweak/tweakmodel.py
+++ b/gtweak/tweakmodel.py
@@ -87,9 +87,11 @@ class TweakGroup:
self.set_tweaks(*tweaks)
def set_tweaks(self, *tweaks):
- self.tweaks += [t for t in tweaks]
+ self.tweaks += [t for t in tweaks if t.loaded]
for t in tweaks:
+ if not t.loaded:
+ continue
if t.widget_for_size_group:
self._sg.add_widget(t.widget_for_size_group)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]