mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
Restore search to a consistent state when showing the search bar again
This commit is contained in:
parent
cd378c7302
commit
0eb58cff84
1 changed files with 6 additions and 1 deletions
|
@ -288,6 +288,7 @@ class FindBarFeature (FeatureBase):
|
|||
if action.props.active:
|
||||
self.bar.show ()
|
||||
self.bar.entry.grab_focus ()
|
||||
self.update_search ()
|
||||
else:
|
||||
try:
|
||||
column = self.window.column_manager.find_item (name = "message")
|
||||
|
@ -346,8 +347,12 @@ class FindBarFeature (FeatureBase):
|
|||
|
||||
def handle_entry_changed (self, entry):
|
||||
|
||||
self.update_search ()
|
||||
|
||||
def update_search (self):
|
||||
|
||||
model = self.log_view.props.model
|
||||
search_text = entry.props.text
|
||||
search_text = self.bar.entry.props.text
|
||||
column = self.window.column_manager.find_item (name = "message")
|
||||
if search_text == "":
|
||||
self.logger.debug ("search string set to '', aborting search")
|
||||
|
|
Loading…
Reference in a new issue