feat: wire timeline markers into MainWindow

This commit is contained in:
2026-04-06 13:11:05 +02:00
parent 5960a2fe78
commit 207518902f
+7
View File
@@ -525,6 +525,12 @@ class MainWindow(QMainWindow):
else: else:
self.statusBar().clearMessage() self.statusBar().clearMessage()
self._refresh_markers()
def _refresh_markers(self) -> None:
markers = self._db.get_markers(os.path.basename(self._file_path))
self._timeline.set_markers(markers)
# --- Playback --- # --- Playback ---
def _on_cursor_changed(self, t: float): def _on_cursor_changed(self, t: float):
@@ -588,6 +594,7 @@ class MainWindow(QMainWindow):
self._update_next_label() self._update_next_label()
self._btn_export.setEnabled(True) self._btn_export.setEnabled(True)
self.statusBar().showMessage(f"Exported: {os.path.basename(path)}") self.statusBar().showMessage(f"Exported: {os.path.basename(path)}")
self._refresh_markers()
self._playlist.advance() self._playlist.advance()
def _on_export_error(self, msg: str): def _on_export_error(self, msg: str):