mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 13:05:38 +02:00
rename command switch to -invoke_multi_window_process_only_once
This commit is contained in:
parent
aefc566045
commit
f037084b2f
3 changed files with 7 additions and 8 deletions
2
Help.md
2
Help.md
|
@ -17,7 +17,7 @@
|
|||
| ‑auto_restore_missing_windows=1 | Restore missing windows from disk without prompting user
|
||||
| ‑auto_restore_missing_windows=2 | Automatic restore missing windows from disk at startup, user will be prompted before restore each missing window
|
||||
| ‑auto_restore_missing_windows=3 | Automatic restore missing windows from disk at startup without prompting user
|
||||
| -restore_one_window_per_process=1 | Avoid launching multiple windows corresponding to one process when restore from DB.
|
||||
| -invoke_multi_window_process_only_once=0 | Launch an application multiple times to restore multiple windows of the same process from DB.
|
||||
| -check_upgrade=0 | Disable PW upgrade check from beginning
|
||||
| -auto_upgrade=1 | Upgrade PW automatically without user interaction
|
||||
|
||||
|
|
|
@ -94,7 +94,7 @@ namespace Ninjacrab.PersistentWindows.Common
|
|||
public bool enhancedOffScreenFix = false;
|
||||
public bool fixUnminimizedWindow = true;
|
||||
public bool autoRestoreMissingWindows = false;
|
||||
public bool restoreOneWindowPerProcess = true;
|
||||
public bool launchOncePerProcessId = true;
|
||||
private int restoreTimes = 0; //multiple passes need to fully restore
|
||||
private int dbMatchLevel = 0;
|
||||
private Object restoreLock = new object();
|
||||
|
@ -2904,8 +2904,7 @@ namespace Ninjacrab.PersistentWindows.Common
|
|||
if (dbMatchWindow.Contains(curDisplayMetrics.Id))
|
||||
continue;
|
||||
|
||||
// launch once per process id
|
||||
if (restoreOneWindowPerProcess)
|
||||
if (launchOncePerProcessId)
|
||||
{
|
||||
if (dbMatchProcess.Contains(curDisplayMetrics.ProcessId))
|
||||
continue;
|
||||
|
|
|
@ -45,7 +45,7 @@ namespace Ninjacrab.PersistentWindows.SystrayShell
|
|||
bool enhanced_offscreen_fix = false;
|
||||
bool auto_restore_missing_windows = false;
|
||||
bool auto_restore_from_db_at_startup = false;
|
||||
bool restore_one_window_per_process = true;
|
||||
bool launch_once_per_process_id = true;
|
||||
bool check_upgrade = true;
|
||||
bool auto_upgrade = false;
|
||||
|
||||
|
@ -145,8 +145,8 @@ namespace Ninjacrab.PersistentWindows.SystrayShell
|
|||
auto_restore_from_db_at_startup = true;
|
||||
auto_restore_missing_windows = true;
|
||||
break;
|
||||
case "-restore_one_window_per_process=0":
|
||||
restore_one_window_per_process = false;
|
||||
case "-invoke_multi_window_process_only_once=0":
|
||||
launch_once_per_process_id = false;
|
||||
break;
|
||||
case "-check_upgrade=0":
|
||||
check_upgrade = false;
|
||||
|
@ -230,7 +230,7 @@ namespace Ninjacrab.PersistentWindows.SystrayShell
|
|||
pwp.fixUnminimizedWindow = fix_unminimized_window;
|
||||
pwp.promptSessionRestore = prompt_session_restore;
|
||||
pwp.autoRestoreMissingWindows = auto_restore_missing_windows;
|
||||
pwp.restoreOneWindowPerProcess = restore_one_window_per_process;
|
||||
pwp.launchOncePerProcessId = launch_once_per_process_id;
|
||||
pwp.haltRestore = halt_restore;
|
||||
if (ignore_process.Length > 0)
|
||||
pwp.SetIgnoreProcess(ignore_process);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue