[gnome-music/wip/mschraal/albumwidget-corealbum-property: 2/2] albumwidget: Drop redundant function argument




commit 173eb1ff50987ef76c50db38d96e38b8ff8b4d96
Author: Marinus Schraal <mschraal gnome org>
Date:   Thu Aug 5 11:02:20 2021 +0200

    albumwidget: Drop redundant function argument
    
    Drop corealbum argument for _set_composer_label, it comes as an instance
    wide variable.

 gnomemusic/widgets/albumwidget.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/widgets/albumwidget.py b/gnomemusic/widgets/albumwidget.py
index 82a43027b..68eccc4cc 100644
--- a/gnomemusic/widgets/albumwidget.py
+++ b/gnomemusic/widgets/albumwidget.py
@@ -121,7 +121,7 @@ class AlbumWidget(Gtk.Box):
 
         self._released_info_label.props.label = self._corealbum.props.year
 
-        self._set_composer_label(corealbum)
+        self._set_composer_label()
 
         self._album_model = self._corealbum.props.model
         self._model_signal_id = self._album_model.connect_after(
@@ -155,8 +155,8 @@ class AlbumWidget(Gtk.Box):
                 discbox = self._disc_list_box.get_row_at_index(i)
                 discbox.props.show_disc_label = True
 
-    def _set_composer_label(self, corealbum):
-        composer = corealbum.props.composer
+    def _set_composer_label(self) -> None:
+        composer = self._corealbum.props.composer
         show = False
 
         if composer:


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