[gnome-music/wip/mschraal/coremodel-use-flattened-main-models: 2/2] grltrackerwrapper: Do not declare coremodel var classwide
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/coremodel-use-flattened-main-models: 2/2] grltrackerwrapper: Do not declare coremodel var classwide
- Date: Fri, 12 Jun 2020 12:12:00 +0000 (UTC)
commit b8f98fcb3394498c92bf96971ec943e8f3f2b052
Author: Marinus Schraal <mschraal gnome org>
Date: Fri Jun 12 14:10:40 2020 +0200
grltrackerwrapper: Do not declare coremodel var classwide
gnomemusic/grilowrappers/grltrackerwrapper.py | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gnomemusic/grilowrappers/grltrackerwrapper.py b/gnomemusic/grilowrappers/grltrackerwrapper.py
index 8f50f8ba..4d1f350c 100644
--- a/gnomemusic/grilowrappers/grltrackerwrapper.py
+++ b/gnomemusic/grilowrappers/grltrackerwrapper.py
@@ -71,21 +71,21 @@ class GrlTrackerWrapper(GObject.GObject):
super().__init__()
self._application = application
- self._coremodel = application.props.coremodel
+ coremodel = application.props.coremodel
self._log = application.props.log
self._songs_model = Gio.ListStore.new(CoreSong)
- self._coremodel.props.songs_proxy.append(self._songs_model)
+ coremodel.props.songs_proxy.append(self._songs_model)
self._source = None
self._albums_model = Gio.ListStore.new(CoreAlbum)
- self._coremodel.props.albums_proxy.append(self._albums_model)
+ coremodel.props.albums_proxy.append(self._albums_model)
self._album_ids = {}
self._artists_model = Gio.ListStore.new(CoreArtist)
- self._coremodel.props.artists_proxy.append(self._artists_model)
+ coremodel.props.artists_proxy.append(self._artists_model)
self._artist_ids = {}
self._hash = {}
- self._song_search_proxy = self._coremodel.props.songs_search_proxy
- self._album_search_model = self._coremodel.props.albums_search
- self._artist_search_model = self._coremodel.props.artists_search
+ self._song_search_proxy = coremodel.props.songs_search_proxy
+ self._album_search_model = coremodel.props.albums_search
+ self._artist_search_model = coremodel.props.artists_search
self._batch_changed_media_ids = {}
self._content_changed_timeout = None
self._tracker_playlists = None
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]