Skip to content

Commit

Permalink
Restore geometry and window state twice (once on creation of main win…
Browse files Browse the repository at this point in the history
…dows, and once after window is shown).
  • Loading branch information
jonoomph committed Jul 8, 2024
1 parent 06e6d0d commit 3b8373e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/windows/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -3493,7 +3493,9 @@ def __init__(self, *args):
# Apply saved window geometry/state from settings
if self.saved_geometry:
self.restoreGeometry(self.saved_geometry)
QTimer.singleShot(0, functools.partial(self.restoreGeometry, self.saved_geometry))
if self.saved_state:
self.restoreState(self.saved_state)
QTimer.singleShot(0, functools.partial(self.restoreState, self.saved_state))

# Save settings
Expand Down

0 comments on commit 3b8373e

Please sign in to comment.