[tracks] changing window size immediately updates the view
This commit is contained in:
parent
50d982c93b
commit
30741be200
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user