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/dash | |
| 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/dash')
| -rw-r--r-- | modules/dashboard/dash/Media.qml | 6 |
1 files changed, 2 insertions, 4 deletions
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 |