[gnome-music/wip/jfelder/window-cleanups: 3/4] window: Remove unnecessary searchbar reveal call



commit 3fccf51eb76611d29850dd627f727a943cdac4f0
Author: Jean Felder <jfelder src gnome org>
Date:   Thu Nov 15 14:12:01 2018 +0100

    window: Remove unnecessary searchbar reveal call
    
    When a child view is visible in search mode, searchbar is not
    visible. Thus, it is unecessary to hide it when switching back to the
    main view.

 gnomemusic/window.py | 3 ---
 1 file changed, 3 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 0e7d63e2..a272fe23 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -472,9 +472,6 @@ class Window(Gtk.ApplicationWindow):
         if self.curr_view in views_with_child:
             self.curr_view._back_button_clicked(self.curr_view)
 
-        if self.curr_view != self.views[View.SEARCH]:
-            self._searchbar.reveal(False)
-
     @log
     def _on_selection_mode_changed(self, widget, data=None):
         if self.props.selection_mode:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]