do not auto-restore upon program start

This commit is contained in:
Kang Yu 2025-02-02 13:33:54 -08:00
parent 0e622b8021
commit 2bfd021698

View file

@ -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;
}