[vlc-commits] [Git][videolan/vlc][master] qml: fix artwork placeholder visibility in music expand panel

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Tue Jul 26 07:45:53 UTC 2022



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
f530f10c by Pierre Lamot at 2022-07-26T07:34:02+00:00
qml: fix artwork placeholder visibility in music expand panel

artwork path may be ""

- - - - -


1 changed file:

- modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml


Changes:

=====================================
modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml
=====================================
@@ -118,17 +118,19 @@ FocusScope {
                     height: VLCStyle.expandCover_music_height
                     width: VLCStyle.expandCover_music_width
 
+                    Widgets.ListCoverShadow {
+                        anchors.fill: parent
+                    }
+
                     RoundImage {
                         id: expand_cover_id
 
                         height: VLCStyle.expandCover_music_height
                         width: VLCStyle.expandCover_music_width
                         radius: VLCStyle.expandCover_music_radius
-                        source: Helpers.get(model, "cover", VLCStyle.noArtAlbumCover)
-                    }
-
-                    Widgets.ListCoverShadow {
-                        anchors.fill: parent
+                        source: (model && model.cover && model.cover !== "")
+                                  ?  model.cover
+                                  : VLCStyle.noArtAlbumCover
                     }
                 }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f530f10c5e8e93268e2075b6dbe26cf2c5c8e585

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f530f10c5e8e93268e2075b6dbe26cf2c5c8e585
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list