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/Media.qml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'modules/dashboard/Media.qml') diff --git a/modules/dashboard/Media.qml b/modules/dashboard/Media.qml index 58e942b..24f504a 100644 --- a/modules/dashboard/Media.qml +++ b/modules/dashboard/Media.qml @@ -15,7 +15,6 @@ import QtQuick.Layouts Item { id: root - required property bool shouldUpdate required property PersistentProperties visibilities property real playerProgress: { @@ -41,7 +40,7 @@ Item { } Timer { - running: root.shouldUpdate && (Players.active?.isPlaying ?? false) + running: Players.active?.isPlaying ?? false interval: Config.dashboard.mediaUpdateInterval triggeredOnStart: true repeat: true @@ -52,8 +51,7 @@ Item { target: Cava function onValuesChanged(): void { - if (root.shouldUpdate) - visualiser.requestPaint(); + visualiser.requestPaint(); } } @@ -523,7 +521,7 @@ Item { width: visualiser.width * 0.75 height: visualiser.height * 0.75 - 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