fix: show unknown artist/album when empty

This commit is contained in:
2 * r + 2 * t 2026-05-09 01:17:09 +10:00
parent 89cdfc9367
commit 3ac1a2b2f8

View file

@ -43,7 +43,7 @@ ColumnLayout {
StyledText { StyledText {
Layout.fillWidth: true Layout.fillWidth: true
text: Players.active?.trackArtist ?? qsTr("Unknown artist") text: Players.active?.trackArtist || qsTr("Unknown artist")
color: Colours.palette.m3onSurfaceVariant color: Colours.palette.m3onSurfaceVariant
font: Tokens.font.title.medium font: Tokens.font.title.medium
elide: Text.ElideRight elide: Text.ElideRight
@ -52,7 +52,7 @@ ColumnLayout {
StyledText { StyledText {
Layout.fillWidth: true Layout.fillWidth: true
text: Players.active?.trackAlbum ?? qsTr("Unknown album") text: Players.active?.trackAlbum || qsTr("Unknown album")
color: Colours.palette.m3secondary color: Colours.palette.m3secondary
font: Tokens.font.title.medium font: Tokens.font.title.medium
elide: Text.ElideRight elide: Text.ElideRight