[gnome-music/wip/mschraal/albumwidget-show-duration-label: 1/2] albumwidget: Make sure year/duration are shown
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/albumwidget-show-duration-label: 1/2] albumwidget: Make sure year/duration are shown
- Date: Sun, 20 Feb 2022 21:09:27 +0000 (UTC)
commit 23a3f8e275a43ea401c7a78feecabad553cf39dc
Author: Marinus Schraal <mschraal gnome org>
Date: Sun Feb 20 21:58:03 2022 +0100
albumwidget: Make sure year/duration are shown
If the duration was no longer updated (after loading was done), it would
not set the year & duration labels.
Make sure the labels are set staticly at least once.
Fixes: #506
gnomemusic/widgets/albumwidget.py | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gnomemusic/widgets/albumwidget.py b/gnomemusic/widgets/albumwidget.py
index 6b2fb78ba..f7df83449 100644
--- a/gnomemusic/widgets/albumwidget.py
+++ b/gnomemusic/widgets/albumwidget.py
@@ -153,6 +153,9 @@ class AlbumWidget(Adw.Bin):
self._year_signal_id = self._corealbum.connect(
"notify::year", self._on_release_info_changed)
self._set_composer_label()
+ # In case the duration is no longer changing, make sure it is
+ # displayed.
+ self._on_release_info_changed(corealbum, None)
self._album_model = self._corealbum.props.model
self._model_signal_id = self._album_model.connect_after(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]