From cad26ff8f9ae7b85e7a94d47eaa2ba13ff2b6244 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Sat, 27 Apr 2024 18:47:06 +0100 Subject: [PATCH] Fix #233 --- app/classes.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/classes.py b/app/classes.py index 2abf95c..5372927 100644 --- a/app/classes.py +++ b/app/classes.py @@ -197,6 +197,11 @@ class PlaylistTrack: milliseconds=update_graph_at_ms ) + # Calculate time fade_graph should start updating + if self.fade_at: + update_graph_at_ms = max(0, self.fade_at - Config.FADE_CURVE_MS_BEFORE_FADE - 1) + self.fade_graph_start_updates = now + timedelta(milliseconds=update_graph_at_ms) + class AddFadeCurve(QObject): """