fix: show unknown artist/album when empty
This commit is contained in:
parent
89cdfc9367
commit
3ac1a2b2f8
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue