[gnome-music/wip/mschraal/window-template: 4/6] window: Do not use internal var
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/window-template: 4/6] window: Do not use internal var
- Date: Mon, 18 May 2020 15:22:34 +0000 (UTC)
commit 614b8b92e5a8a4e188f9dea11a626ac37e892011
Author: Marinus Schraal <mschraal gnome org>
Date: Sun May 17 20:48:53 2020 +0200
window: Do not use internal var
gnomemusic/window.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 0431f571..40a8373a 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -69,8 +69,9 @@ class Window(Gtk.ApplicationWindow):
super().__init__(application=app, title=_("Music"))
self._app = app
+ self._coreselection = app.props.coreselection
- self._app._coreselection.bind_property(
+ self._coreselection.bind_property(
"selected-items-count", self, "selected-items-count")
self._settings = app.props.settings
@@ -452,7 +453,7 @@ class Window(Gtk.ApplicationWindow):
if self.props.active_view == self.views[View.PLAYLIST]:
return
- selected_songs = self._app._coreselection.props.selected_items
+ selected_songs = self._coreselection.props.selected_items
if len(selected_songs) < 1:
return
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]