summaryrefslogtreecommitdiff
path: root/modules/dashboard/Media.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/dashboard/Media.qml')
-rw-r--r--modules/dashboard/Media.qml8
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