[gnome-music/wip/mschraal/coremodel-use-flattened-main-models: 7/7] 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: 7/7] grltrackerwrapper: Do not declare coremodel var classwide
- Date: Wed, 1 Jul 2020 09:05:37 +0000 (UTC)
commit 980d5ae908082691ca9c79535a06cba8a556a8a9
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 952eb15a..d1e5db39 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]