turn on -auto_restore_new_window_to_last_capture again

This commit is contained in:
Kang Yu 2025-04-28 14:24:18 -07:00
parent f7a1f92343
commit 8da7d9b4bc
2 changed files with 3 additions and 3 deletions

View file

@ -122,7 +122,7 @@ namespace PersistentWindows.Common
public bool fixUnminimizedWindow = true;
public bool autoRestoreMissingWindows = false;
public bool autoRestoreLiveWindowsFromDb = true; //for new display session, autorestore live windows using data from db (without resurrecting dead one)
public bool autoRestoreNewWindowToLastCapture = false;
public bool autoRestoreNewWindowToLastCapture = true;
public bool launchOncePerProcessId = true;
private int restoreTimes = 0; //multiple passes need to fully restore
private Object restoreLock = new object();

View file

@ -270,8 +270,8 @@ if not errorlevel 1 goto wait_to_finish";
case "-auto_restore_existing_window_to_last_capture=1":
auto_restore_last_capture_at_startup = true;
break;
case "-auto_restore_new_window_to_last_capture=1":
pwp.autoRestoreNewWindowToLastCapture = true;
case "-auto_restore_new_window_to_last_capture=0":
pwp.autoRestoreNewWindowToLastCapture = false;
break;
case "-pos_match_threshold":
set_pos_match_threshold = true;