From 30741be200c1a9af6da0c8b0ea8692641216a1a3 Mon Sep 17 00:00:00 2001 From: Jan Grewe Date: Sat, 1 Mar 2025 16:51:39 +0100 Subject: [PATCH] [tracks] changing window size immediately updates the view --- fixtracks/widgets/tracks.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/fixtracks/widgets/tracks.py b/fixtracks/widgets/tracks.py index b9b4d58..9cce7b9 100644 --- a/fixtracks/widgets/tracks.py +++ b/fixtracks/widgets/tracks.py @@ -353,11 +353,12 @@ class FixTracks(QWidget): """ self._currentWindowWidth = value logging.debug("Tracks:OnWindowSizeChanged %i franes", value) - if self._maxframes == 0: - self._timeline.setWindowWidth(self._currentWindowWidth / 2000) - else: - self._timeline.setWindowWidth(self._currentWindowWidth / self._maxframes) - self._controls_widget.setSelectedTracks(None) + # if self._maxframes == 0: + # self._timeline.setWindowWidth(self._currentWindowWidth / 2000) + # else: + # self._timeline.setWindowWidth(self._currentWindowWidth / self._maxframes) + # self._controls_widget.setSelectedTracks(None) + self.update() def on_goto(self): target = self._goto_spinner.value()