diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-28 22:08:17 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-28 22:08:17 +1000 |
| commit | 45ebf3c70ef32167fba6439d249d18820a49b569 (patch) | |
| tree | 9743c9f185d648d5805b71fe0267d1a4ea4bcb6d /modules/dashboard/Media.qml | |
| parent | internal: use layouts for dashboard (diff) | |
| download | caelestia-shell-45ebf3c70ef32167fba6439d249d18820a49b569.tar.gz caelestia-shell-45ebf3c70ef32167fba6439d249d18820a49b569.tar.bz2 caelestia-shell-45ebf3c70ef32167fba6439d249d18820a49b569.zip | |
dashboard: loader panes
Diffstat (limited to 'modules/dashboard/Media.qml')
| -rw-r--r-- | modules/dashboard/Media.qml | 8 |
1 files changed, 3 insertions, 5 deletions
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 |