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)