[vlc-commits] [Git][videolan/vlc][master] qml: fix empty title in Music Album expand delegate
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Sun Jun 23 09:46:44 UTC 2024
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
a524b256 by Prince Gupta at 2024-06-23T09:26:20+00:00
qml: fix empty title in Music Album expand delegate
?? returns left side if left side is empty string
- - - - -
1 changed file:
- modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml
Changes:
=====================================
modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml
=====================================
@@ -240,7 +240,7 @@ FocusScope {
Widgets.SubtitleLabel {
id: expand_infos_title_id
- text: root.model?.title ?? qsTr("Unknown title")
+ text: root.model?.title || qsTr("Unknown title")
color: theme.fg.primary
@@ -266,9 +266,10 @@ FocusScope {
color: theme.fg.secondary
width: parent.width
+
text: qsTr("%1 - %2 - %3 - %4")
- .arg(root.model?.main_artist ?? qsTr("Unknown artist"))
- .arg(root.model?.release_year ?? "")
+ .arg(root.model?.main_artist || qsTr("Unknown artist"))
+ .arg(root.model?.release_year || "")
.arg(_getStringTrack())
.arg(root.model?.duration?.formatHMS() ?? 0)
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a524b256730bdb69896374fdcc8746a98dc42998
--
This project does not include diff previews in email notifications.
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a524b256730bdb69896374fdcc8746a98dc42998
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