[gnome-music/wip/jfelder/searchbar-child: 5/7] window: Search shortcut does not disable search-mode
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/searchbar-child: 5/7] window: Search shortcut does not disable search-mode
- Date: Fri, 16 Nov 2018 00:39:25 +0000 (UTC)
commit b73fa9a423f1ef69eb204353942d07b6084fa21f
Author: Jean Felder <jfelder src gnome org>
Date: Thu Nov 15 23:14:39 2018 +0100
window: Search shortcut does not disable search-mode
Pressing on the search shortcut when the searchbar is already active
should not disable search mode.
gnomemusic/window.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 6dd36a6a..3b81e0e1 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -307,8 +307,7 @@ class Window(Gtk.ApplicationWindow):
if (keyval == Gdk.KEY_f
and not self.views[View.PLAYLIST].rename_active
and self.props.search_mode_allowed):
- search_enabled = self._searchbar.props.search_mode_enabled
- self._searchbar.props.search_mode_enabled = not search_enabled
+ self._searchbar.props.search_mode_enabled = True
# Play / Pause on Ctrl + SPACE
if keyval == Gdk.KEY_space:
self._player.play_pause()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]