diff options
author | René Stadler <mail@renestadler.de> | 2009-02-02 02:57:25 +0200 |
---|---|---|
committer | René Stadler <mail@renestadler.de> | 2009-02-07 23:07:56 +0200 |
commit | 468bbbec76e4850f4b5fd0cb7cde30154ae3a3ce (patch) | |
tree | cf4e622862b614da5863334c6701d46f018f61fa | |
parent | 200324dec3d645f04967f0ab53fb63ed7106a303 (diff) |
GUI: Disable filtering for new windows
Having new windows come up with the filter restored from state turns out to be
confusing; people would overlook the filter setting sometimes and wonder where
all the elements went...
-rw-r--r-- | GstInspector/GUI/filters.py | 3 | ||||
-rw-r--r-- | GstInspector/GUI/window.py | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/GstInspector/GUI/filters.py b/GstInspector/GUI/filters.py index b9c5d5e..926fe7c 100644 --- a/GstInspector/GUI/filters.py +++ b/GstInspector/GUI/filters.py @@ -624,9 +624,10 @@ class FilterManager (Manager): ui_filter = self.find_item (name = filter_class.name) ui_filter.default_param = default_param - self.active = ui_filter self.default_active = ui_filter + self.active = self.find_item (name = "show-all") + def detach (self): active = self.active diff --git a/GstInspector/GUI/window.py b/GstInspector/GUI/window.py index 741a460..a7640c0 100644 --- a/GstInspector/GUI/window.py +++ b/GstInspector/GUI/window.py @@ -416,10 +416,6 @@ class InspectorWindow (Data.Consumer): self.filter_manager.attach (self) self.column_manager.attach (self) - default_filter = self.app.state.filter - if default_filter and default_filter != UIFilterNone: - self.actions.show_filter.props.active = True - if len (model): # Model is already filled, so we are a new window created after # data has been loaded. |