[gnome-music/wip/mschraal/coremodel-flatten-search-models: 3/3] 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: 3/3] grltrackerwrapper: Adapt songs search terminology
- Date: Sat, 31 Oct 2020 15:41:36 +0000 (UTC)
commit cc092c313697656924f168c45124efbd67a1555a
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 | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/gnomemusic/grilowrappers/grltrackerwrapper.py b/gnomemusic/grilowrappers/grltrackerwrapper.py
index 396fa02e0..dd697f4e4 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,9 @@ 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.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.new(self._albums_model)
self._albums_search.set_filter_func(lambda a: False)
@@ -1110,7 +1109,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]