[gnome-music/wip/mschraal/core: 103/190] artistalbumwidget: Show disc nr



commit f3e008372d59fd99ebf8d40a3035ded4b02bb388
Author: Marinus Schraal <mschraal gnome org>
Date:   Sun Jun 23 22:28:55 2019 +0200

    artistalbumwidget: Show disc nr

 gnomemusic/widgets/artistalbumwidget.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gnomemusic/widgets/artistalbumwidget.py b/gnomemusic/widgets/artistalbumwidget.py
index 4ace5e13..2cc0076e 100644
--- a/gnomemusic/widgets/artistalbumwidget.py
+++ b/gnomemusic/widgets/artistalbumwidget.py
@@ -109,8 +109,7 @@ class ArtistAlbumWidget(Gtk.Box):
         self._disc_list_box.bind_model(self._model, self._create_widget)
 
     def _create_widget(self, disc):
-        disc_box = self._create_disc_box(
-            disc.media.get_album_disc_number(), disc.model)
+        disc_box = self._create_disc_box(disc.props.disc_nr, disc.model)
 
         return disc_box
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]