[tracks] changing window size immediately updates the view

This commit is contained in:
Jan Grewe 2025-03-01 16:51:39 +01:00
parent 50d982c93b
commit 30741be200

View File

@ -353,11 +353,12 @@ class FixTracks(QWidget):
""" """
self._currentWindowWidth = value self._currentWindowWidth = value
logging.debug("Tracks:OnWindowSizeChanged %i franes", value) logging.debug("Tracks:OnWindowSizeChanged %i franes", value)
if self._maxframes == 0: # if self._maxframes == 0:
self._timeline.setWindowWidth(self._currentWindowWidth / 2000) # self._timeline.setWindowWidth(self._currentWindowWidth / 2000)
else: # else:
self._timeline.setWindowWidth(self._currentWindowWidth / self._maxframes) # self._timeline.setWindowWidth(self._currentWindowWidth / self._maxframes)
self._controls_widget.setSelectedTracks(None) # self._controls_widget.setSelectedTracks(None)
self.update()
def on_goto(self): def on_goto(self):
target = self._goto_spinner.value() target = self._goto_spinner.value()