From 3b8373ec0075d55c8fb77f9bb140a336e2479680 Mon Sep 17 00:00:00 2001 From: Jonathan Thomas Date: Mon, 8 Jul 2024 17:29:43 -0500 Subject: [PATCH] Restore geometry and window state twice (once on creation of main windows, and once after window is shown). --- src/windows/main_window.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/windows/main_window.py b/src/windows/main_window.py index e0329b7be..b62cd9ac3 100644 --- a/src/windows/main_window.py +++ b/src/windows/main_window.py @@ -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