rename a variable

This commit is contained in:
Kang Yu 2024-11-18 10:55:19 -08:00
parent 573b453704
commit b392ac84f9
2 changed files with 4 additions and 4 deletions

View file

@ -119,7 +119,7 @@ namespace PersistentWindows.Common
public bool enhancedOffScreenFix = false; public bool enhancedOffScreenFix = false;
public bool fixUnminimizedWindow = true; public bool fixUnminimizedWindow = true;
public bool autoRestoreMissingWindows = false; public bool autoRestoreMissingWindows = false;
public bool autoRestoreLiveWindows = true; //for new display session, autorestore live windows using data from db (without resurrecting dead one) public bool autoRestoreLiveWindowsFromDb = true; //for new display session, autorestore live windows using data from db (without resurrecting dead one)
public bool launchOncePerProcessId = true; public bool launchOncePerProcessId = true;
private int restoreTimes = 0; //multiple passes need to fully restore private int restoreTimes = 0; //multiple passes need to fully restore
private Object restoreLock = new object(); private Object restoreLock = new object();
@ -882,7 +882,7 @@ namespace PersistentWindows.Common
{ {
PromptSessionRestore(); PromptSessionRestore();
} }
if (autoRestoreLiveWindows && !monitorApplications.ContainsKey(displayKey)) if (autoRestoreLiveWindowsFromDb && !monitorApplications.ContainsKey(displayKey))
{ {
CaptureApplicationsOnCurrentDisplays(displayKey, immediateCapture: true); CaptureApplicationsOnCurrentDisplays(displayKey, immediateCapture: true);
Log.Event("auto restore from db"); Log.Event("auto restore from db");
@ -1028,7 +1028,7 @@ namespace PersistentWindows.Common
{ {
RestoreSnapshot(MaxSnapshots + 1); RestoreSnapshot(MaxSnapshots + 1);
} }
else if (db_exist && autoRestoreLiveWindows) else if (db_exist && autoRestoreLiveWindowsFromDb)
{ {
Log.Event("auto restore from db"); Log.Event("auto restore from db");
restoringFromDB = true; restoringFromDB = true;

View file

@ -269,7 +269,7 @@ if not errorlevel 1 goto wait_to_finish";
auto_restore_missing_windows = true; auto_restore_missing_windows = true;
break; break;
case "-auto_restore_new_display_session_from_db=0": case "-auto_restore_new_display_session_from_db=0":
pwp.autoRestoreLiveWindows = false; pwp.autoRestoreLiveWindowsFromDb = false;
Log.Error("turn off auto restore db for new session"); Log.Error("turn off auto restore db for new session");
break; break;
case "-invoke_multi_window_process_only_once=0": case "-invoke_multi_window_process_only_once=0":