From 16229e4219ef6a0951e4c9a3bff9bfe3fd54f16f Mon Sep 17 00:00:00 2001 From: senkun Date: Tue, 2 Dec 2025 14:06:32 +0800 Subject: 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 --- modules/dashboard/Media.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') 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 -- cgit v1.2.3-freya