Some code consolidation in editor

This commit is contained in:
Miguel Jacq 2025-11-07 09:38:25 +11:00
parent 71b6ee2651
commit ada1d8ffad
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
3 changed files with 154 additions and 155 deletions

View file

@ -707,7 +707,7 @@ class MainWindow(QMainWindow):
QGuiApplication.screenAt(QCursor.pos()) or QGuiApplication.primaryScreen()
)
r = screen.availableGeometry()
# Center the window in that screens 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 youre 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