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

@ -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)