[gnome-music] searchbar: Remove local tags on global search
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] searchbar: Remove local tags on global search
- Date: Sun, 22 Apr 2018 19:06:01 +0000 (UTC)
commit a54e87d74359ef91a4f1e538fe4b9f4f1922a5af
Author: Juan José González <juanjosegzl gmail com>
Date: Thu Apr 5 11:30:48 2018 -0400
searchbar: Remove local tags on global search
When a global source is selected for searching
clear local tags by setting search_all.
Fixes #130
gnomemusic/searchbar.py | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gnomemusic/searchbar.py b/gnomemusic/searchbar.py
index 566c18fc..eb95da7f 100644
--- a/gnomemusic/searchbar.py
+++ b/gnomemusic/searchbar.py
@@ -278,6 +278,8 @@ class DropDown(Gtk.Revealer):
manager.active = id_
if manager == self._source_manager:
self._search_filter.view.set_sensitive(id == 'grl-tracker-source')
+ self.search_manager.active = (
+ 'search_all' if id_ != 'grl-tracker-source' else '')
class Searchbar(Gtk.SearchBar):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]