fix: disengage lock and clear keyframes when switching clips

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-14 08:53:33 +02:00
parent 39e7b19bc5
commit d87b3c6da5
+6
View File
@@ -2262,6 +2262,12 @@ class MainWindow(QMainWindow):
# _after_load triggered by MpvWidget.file_loaded signal
def _after_load(self):
# Disengage lock and clear keyframes for the new file.
if self._btn_lock.isChecked():
self._btn_lock.setChecked(False)
self._crop_keyframes.clear()
self._timeline.set_crop_keyframes([])
dur = self._mpv.get_duration()
self._timeline.set_duration(dur)
self._cursor = 0.0