From f6bcc2b7897a23d72dbfd46fd787edef74d615ef Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Wed, 12 Nov 2025 14:09:47 +1100 Subject: [PATCH] Fix hiding status bar (and find bar) when locked --- CHANGELOG.md | 1 + bouquin/main_window.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ac1c2b..1ee3899 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # 0.2.1.8 * Translate all strings, add French, add locale choice in settings + * Fix hiding status bar (including find bar) when locked # 0.2.1.7 diff --git a/bouquin/main_window.py b/bouquin/main_window.py index f82f533..d1987d7 100644 --- a/bouquin/main_window.py +++ b/bouquin/main_window.py @@ -1212,9 +1212,11 @@ class MainWindow(QMainWindow): self.menuBar().setEnabled(False) if self.statusBar(): self.statusBar().setEnabled(False) + self.statusBar().hide() tb = getattr(self, "toolBar", None) if tb: tb.setEnabled(False) + tb.hide() self._lock_overlay.show() self._lock_overlay.raise_() @@ -1236,9 +1238,11 @@ class MainWindow(QMainWindow): self.menuBar().setEnabled(True) if self.statusBar(): self.statusBar().setEnabled(True) + self.statusBar().show() tb = getattr(self, "toolBar", None) if tb: tb.setEnabled(True) + tb.show() self._idle_timer.start() QTimer.singleShot(0, self._focus_editor_now)