[vlc-commits] [Git][videolan/vlc][master] qml: provide fallback for title in ArtworkInfoWidget
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Sat Aug 31 15:57:37 UTC 2024
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
e309b778 by Fatih Uzunoglu at 2024-08-31T15:39:31+00:00
qml: provide fallback for title in ArtworkInfoWidget
If the input item does not have such metadata then
use `name` which uses the file name in the worst
case instead.
- - - - -
1 changed file:
- modules/gui/qt/player/qml/controlbarcontrols/ArtworkInfoWidget.qml
Changes:
=====================================
modules/gui/qt/player/qml/controlbarcontrols/ArtworkInfoWidget.qml
=====================================
@@ -203,9 +203,11 @@ AbstractButton {
text: {
if (paintOnly)
- qsTr("Title")
+ return qsTr("Title")
+ else if (Player.title.length > 0)
+ return Player.title
else
- Player.title
+ return Player.name
}
color: theme.fg.primary
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e309b77819f83da9f65b89aebae122fce77de70c
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e309b77819f83da9f65b89aebae122fce77de70c
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