Skip to content

Commit

Permalink
Merge pull request #5576 from OpenShot/restore-geometry-twice
Browse files Browse the repository at this point in the history
Restore geometry and window state (on Windows High DPI monitors)
  • Loading branch information
jonoomph authored Jul 9, 2024
2 parents 06e6d0d + 3b8373e commit 228b3d5
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 228b3d5

Please sign in to comment.