Fix hiding status bar (and find bar) when locked

This commit is contained in:
Miguel Jacq 2025-11-12 14:09:47 +11:00
parent f578d562e6
commit f6bcc2b789
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
2 changed files with 5 additions and 0 deletions

View file

@ -1,6 +1,7 @@
# 0.2.1.8 # 0.2.1.8
* Translate all strings, add French, add locale choice in settings * Translate all strings, add French, add locale choice in settings
* Fix hiding status bar (including find bar) when locked
# 0.2.1.7 # 0.2.1.7

View file

@ -1212,9 +1212,11 @@ class MainWindow(QMainWindow):
self.menuBar().setEnabled(False) self.menuBar().setEnabled(False)
if self.statusBar(): if self.statusBar():
self.statusBar().setEnabled(False) self.statusBar().setEnabled(False)
self.statusBar().hide()
tb = getattr(self, "toolBar", None) tb = getattr(self, "toolBar", None)
if tb: if tb:
tb.setEnabled(False) tb.setEnabled(False)
tb.hide()
self._lock_overlay.show() self._lock_overlay.show()
self._lock_overlay.raise_() self._lock_overlay.raise_()
@ -1236,9 +1238,11 @@ class MainWindow(QMainWindow):
self.menuBar().setEnabled(True) self.menuBar().setEnabled(True)
if self.statusBar(): if self.statusBar():
self.statusBar().setEnabled(True) self.statusBar().setEnabled(True)
self.statusBar().show()
tb = getattr(self, "toolBar", None) tb = getattr(self, "toolBar", None)
if tb: if tb:
tb.setEnabled(True) tb.setEnabled(True)
tb.show()
self._idle_timer.start() self._idle_timer.start()
QTimer.singleShot(0, self._focus_editor_now) QTimer.singleShot(0, self._focus_editor_now)