From 2bfd02169892f5e1c876a5fbad74c28b7bb219ff Mon Sep 17 00:00:00 2001 From: Kang Yu Date: Sun, 2 Feb 2025 13:33:54 -0800 Subject: [PATCH] do not auto-restore upon program start --- .../Common/PersistentWindowProcessor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs b/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs index d573268..41d3daf 100644 --- a/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs +++ b/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs @@ -3164,7 +3164,7 @@ namespace PersistentWindows.Common else Log.Error($"Inherit position data from existing window 0x{kid.ToString("X")} for {curDisplayMetrics.Title}"); - if (autoRestoreNewWindowToLastCapture) + if (initialized && autoRestoreNewWindowToLastCapture) restore_last = true; }