[gnome-music/wip/mschraal/move-searchbar-handling: 3/3] window: Fix search dissapearing on returning from child
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/move-searchbar-handling: 3/3] window: Fix search dissapearing on returning from child
- Date: Wed, 12 Sep 2018 11:55:09 +0000 (UTC)
commit 699ae051bef57101cd41ddd9017fd69d573b6df0
Author: Marinus Schraal <mschraal gnome org>
Date: Tue Sep 4 16:10:13 2018 +0200
window: Fix search dissapearing on returning from child
The search would dissapear when returning from a child view.
Check if search is the active view and do not hide the searchbar in that
case.
gnomemusic/window.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 9042717c..351d401d 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -503,7 +503,8 @@ class Window(Gtk.ApplicationWindow):
if self.curr_view in views_with_child:
self.curr_view._back_button_clicked(self.curr_view)
- self._searchbar.reveal(False)
+ if self.curr_view != self.views[View.SEARCH]:
+ self._searchbar.reveal(False)
@log
def _on_selection_mode_changed(self, widget, data=None):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]