Fix hiding status bar (and find bar) when locked
This commit is contained in:
parent
f578d562e6
commit
f6bcc2b789
2 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue