summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsenkun <senkun@protonmail.ch>2025-12-02 14:06:32 +0800
committerGitHub <noreply@github.com>2025-12-02 17:06:32 +1100
commit16229e4219ef6a0951e4c9a3bff9bfe3fd54f16f (patch)
treed61394400f895d0dc1b7aaf3587dbf3b150a9f4f
parentpicker: copy screenshot to clipboard (#940) (diff)
downloadcaelestia-shell-16229e4219ef6a0951e4c9a3bff9bfe3fd54f16f.tar.gz
caelestia-shell-16229e4219ef6a0951e4c9a3bff9bfe3fd54f16f.tar.bz2
caelestia-shell-16229e4219ef6a0951e4c9a3bff9bfe3fd54f16f.zip
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
-rw-r--r--modules/dashboard/Media.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/dashboard/Media.qml b/modules/dashboard/Media.qml
index 3d4dcdb..37d1226 100644
--- a/modules/dashboard/Media.qml
+++ b/modules/dashboard/Media.qml
@@ -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