Fix endless Filmotéka hardlink churn and show pool/output paths in the status bar

This commit is contained in:
2026-07-07 16:18:24 +02:00
parent 7ae0709f38
commit 97a39709e8
7 changed files with 97 additions and 66 deletions
+9 -4
View File
@@ -579,6 +579,12 @@ class QtApp(QMainWindow):
def _build_statusbar(self) -> None:
self.status = self.statusBar()
# Pool / Filmotéka paths as permanent widgets on the right so they stay
# visible even while the transient area shows counts or a selection.
self.pool_label = QLabel()
self.output_label = QLabel()
self.status.addPermanentWidget(self.pool_label)
self.status.addPermanentWidget(self.output_label)
self._update_path_status()
# ------------------------------------------------------------------
@@ -717,10 +723,9 @@ class QtApp(QMainWindow):
def _update_path_status(self) -> None:
pool = self.filehandler.pool_dir
out = self.filehandler.filmoteka_dir
self.status.showMessage(
f"Pool: {pool or ''} | Filmotéka: {out or ''} | "
f"{len(self.filehandler.filelist)} filmů"
)
self.pool_label.setText(f"Pool: {pool or ''}")
self.output_label.setText(f"Output: {out or ''}")
self.status.showMessage(f"{len(self.filehandler.filelist)} filmů")
# ------------------------------------------------------------------
# Actions