Expand all filters on start
This commit is contained in:
parent
9bbc0fd8ea
commit
f252ca1775
|
@ -138,6 +138,8 @@ class FilterTreeView(component.Component):
|
||||||
self.update_row("state", "Paused" , 0)
|
self.update_row("state", "Paused" , 0)
|
||||||
self.update_row("state", "Queued" , 0)
|
self.update_row("state", "Queued" , 0)
|
||||||
|
|
||||||
|
# We set to this expand the rows on start-up
|
||||||
|
self.expand_rows = True
|
||||||
|
|
||||||
def create_model_filter(self):
|
def create_model_filter(self):
|
||||||
self.model_filter = self.treestore.filter_new()
|
self.model_filter = self.treestore.filter_new()
|
||||||
|
@ -169,6 +171,10 @@ class FilterTreeView(component.Component):
|
||||||
if not f in visible_filters:
|
if not f in visible_filters:
|
||||||
self.treestore.set_value(self.filters[f], FILTER_COLUMN, False)
|
self.treestore.set_value(self.filters[f], FILTER_COLUMN, False)
|
||||||
|
|
||||||
|
if self.expand_rows:
|
||||||
|
self.label_view.expand_all()
|
||||||
|
self.expand_rows = False
|
||||||
|
|
||||||
(model, row) = self.label_view.get_selection().get_selected()
|
(model, row) = self.label_view.get_selection().get_selected()
|
||||||
if not row:
|
if not row:
|
||||||
self.select_default_filter()
|
self.select_default_filter()
|
||||||
|
|
Loading…
Reference in New Issue