rename -dump_window_pos_at_exit to -dum_window_position_history

This commit is contained in:
Kang Yu 2025-02-02 20:39:47 -08:00
parent b70db0aa53
commit fe06972d58
3 changed files with 6 additions and 6 deletions

View file

@ -30,7 +30,7 @@
| -invoke_multi_window_process_only_once=0 | Launch an application multiple times when multiple windows of the same process need to be restored from the database.
| -check_upgrade=0 | Disable the PersistentWindows upgrade check
| -auto_upgrade=1 | Upgrade PersistentWindows automatically without user interaction
| -dump_window_pos_at_exit=0 | Disable window pos dump at exit of PersistentWindows
| -dump_window_position_history=0 | Disable window position history dump
---

View file

@ -147,7 +147,7 @@ namespace PersistentWindows.Common
"chrome", "firefox", "msedge", "vivaldi", "opera", "brave", "360ChromeX"
};
public bool dumpDataWhenExit = true;
public bool dumpHistoryData = true;
private string windowPosDataFile = "window_pos.xml"; //for PW restart without PC reboot
private string snapshotTimeFile = "snapshot_time.xml";
private string debugWindowDump = "debug_window.xml";
@ -332,7 +332,7 @@ namespace PersistentWindows.Common
{
try
{
if (dumpDataWhenExit)
if (dumpHistoryData)
WriteDataDumpCore(dump_dead_window);
}
catch (Exception e)
@ -370,7 +370,7 @@ namespace PersistentWindows.Common
{
try
{
if (dumpDataWhenExit)
if (dumpHistoryData)
ReadDataDump();
}
catch (Exception e)

View file

@ -290,8 +290,8 @@ if not errorlevel 1 goto wait_to_finish";
case "-auto_upgrade=1":
auto_upgrade = true;
break;
case "-dump_window_pos_at_exit=0":
pwp.dumpDataWhenExit = false;
case "-dump_window_pos=0":
pwp.dumpHistoryData = false;
break;
case "-restore_snapshot":
restore_snapshot = 0;