Fix endless Filmotéka hardlink churn and show pool/output paths in the status bar
This commit is contained in:
+9
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user