Some code consolidation in editor
This commit is contained in:
parent
71b6ee2651
commit
ada1d8ffad
3 changed files with 154 additions and 155 deletions
|
|
@ -707,7 +707,7 @@ class MainWindow(QMainWindow):
|
|||
QGuiApplication.screenAt(QCursor.pos()) or QGuiApplication.primaryScreen()
|
||||
)
|
||||
r = screen.availableGeometry()
|
||||
# Center the window in that screen’s available area
|
||||
# Center the window in that screen's available area
|
||||
self.move(r.center() - self.rect().center())
|
||||
|
||||
# ----------------- Export handler ----------------- #
|
||||
|
|
@ -836,7 +836,7 @@ If you want an encrypted backup, choose Backup instead of Export.
|
|||
return
|
||||
if minutes == 0:
|
||||
self._idle_timer.stop()
|
||||
# If you’re currently locked, unlock when user disables the timer:
|
||||
# If currently locked, unlock when user disables the timer:
|
||||
if getattr(self, "_locked", False):
|
||||
try:
|
||||
self._locked = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue