From 45ebf3c70ef32167fba6439d249d18820a49b569 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 28 Jun 2025 22:08:17 +1000 Subject: dashboard: loader panes --- modules/dashboard/dash/Media.qml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules/dashboard/dash') diff --git a/modules/dashboard/dash/Media.qml b/modules/dashboard/dash/Media.qml index 464f349..1ff93a8 100644 --- a/modules/dashboard/dash/Media.qml +++ b/modules/dashboard/dash/Media.qml @@ -8,8 +8,6 @@ import QtQuick.Shapes Item { id: root - required property bool shouldUpdate - property real playerProgress: { const active = Players.active; return active?.length ? active.position / active.length : 0; @@ -28,7 +26,7 @@ Item { } Timer { - running: root.shouldUpdate && (Players.active?.isPlaying ?? false) + running: Players.active?.isPlaying ?? false interval: Config.dashboard.mediaUpdateInterval triggeredOnStart: true repeat: true @@ -219,7 +217,7 @@ Item { anchors.bottomMargin: Appearance.padding.large anchors.margins: Appearance.padding.large * 2 - playing: root.shouldUpdate && (Players.active?.isPlaying ?? false) + playing: Players.active?.isPlaying ?? false speed: BeatDetector.bpm / 300 source: Paths.expandTilde(Config.paths.mediaGif) asynchronous: true -- cgit v1.2.3-freya