Commit 2bfa66e8 authored by John Stowers's avatar John Stowers

no need to dupe a list when a generator will do

parent 34e0fd28
......@@ -122,11 +122,11 @@ class TweakModel(Gtk.ListStore):
def tweaks(self):
return [t for row in self for t in row[TweakModel.COLUMN_TWEAK].tweaks]
return (t for row in self for t in row[TweakModel.COLUMN_TWEAK].tweaks)
def tweak_groups(self):
return [row[TweakModel.COLUMN_TWEAK] for row in self]
return (row[TweakModel.COLUMN_TWEAK] for row in self)
def load_tweaks(self):
if 1:
......@@ -178,7 +178,7 @@ class TweakModel(Gtk.ListStore):
def search_matches(self, txt):
return [t for t in self.tweaks if t.search_matches(txt)]
return (t for t in self.tweaks if t.search_matches(txt))
def get_tweakgroup_iter(self, name):
return self._tweak_group_iters[name]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment