[gnome-music/wip/mschraal/coremodel-flatten-search-models: 37/37] grltrackerwrapper: Adapt songs search terminology
- From: Marinus Schraal <mschraal src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-music/wip/mschraal/coremodel-flatten-search-models: 37/37] grltrackerwrapper: Adapt songs search terminology
 
- Date: Mon, 22 Mar 2021 20:20:15 +0000 (UTC)
 
commit 7a386be7a0c92fb11a5c5094c348863a339090df
Author: Marinus Schraal <mschraal gnome org>
Date:   Sat Oct 31 16:36:57 2020 +0100
    grltrackerwrapper: Adapt songs search terminology
    
    Bring it in line with albums and artists search.
 gnomemusic/grilowrappers/grltrackerwrapper.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gnomemusic/grilowrappers/grltrackerwrapper.py b/gnomemusic/grilowrappers/grltrackerwrapper.py
index c72a34e36..cd888067f 100644
--- a/gnomemusic/grilowrappers/grltrackerwrapper.py
+++ b/gnomemusic/grilowrappers/grltrackerwrapper.py
@@ -116,7 +116,6 @@ class GrlTrackerWrapper(GObject.GObject):
         cm.props.artists_proxy.append(self._artists_model)
         self._artist_ids: Dict[str, CoreArtist] = {}
         self._hash: Dict[str, CoreSong] = {}
-        self._song_search_proxy: Gio.ListStore = cm.props.songs_search_proxy
         self._batch_changed_media_ids: Dict[
             Grl.SourceChangeType, List[str]] = {}
         self._content_changed_timeout: int = 0
@@ -125,9 +124,10 @@ class GrlTrackerWrapper(GObject.GObject):
         self._notificationmanager: NotificationManager = (
             application.props.notificationmanager)
 
-        self._song_search_tracker = Gfm.FilterListModel.new(self._songs_model)
-        self._song_search_tracker.set_filter_func(lambda a: False)
-        self._song_search_proxy.append(self._song_search_tracker)
+        self._songs_search: Gfm.FilterListModel = Gfm.FilterListModel.new(
+            self._songs_model)
+        self._songs_search.set_filter_func(lambda a: False)
+        cm.props.songs_search_proxy.append(self._songs_search)
 
         self._albums_search: Gfm.FilterListModel = Gfm.FilterListModel.new(
             self._albums_model)
@@ -1117,7 +1117,7 @@ class GrlTrackerWrapper(GObject.GObject):
                 return
 
             if not media:
-                self._song_search_tracker.set_filter_func(songs_filter)
+                self._songs_search.set_filter_func(songs_filter)
                 self._notificationmanager.pop_loading()
                 return
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]