dashboard/media: fix log warnings (#949)

* fix(dashboard): Media.qml module QML warnings due to stricter updated Qt6 checks

* fix(dashboard): Media.qml module QML warnings

* fix(dashboard): Media.qml module QML warnings
This commit is contained in:
senkun 2025-12-02 14:06:32 +08:00 committed by GitHub
parent 578cd3666e
commit 16229e4219
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -224,7 +224,7 @@ Item {
label.animate: true
toggle: true
padding: Appearance.padding.small / 2
checked: Players.active?.isPlaying
checked: Players.active?.isPlaying ?? false
font.pointSize: Math.round(Appearance.font.size.large * 1.5)
disabled: !Players.active?.canTogglePlaying
onClicked: Players.active?.togglePlaying()
@ -323,7 +323,7 @@ Item {
id: playerSelector
disabled: !Players.list.length
active: menuItems.find(m => m.modelData === Players.active) ?? menuItems[0]
active: menuItems.find(m => m.modelData === Players.active) ?? menuItems[0] ?? null
menu.onItemSelected: item => Players.manualActive = item.modelData
menuItems: playerList.instances