mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-12 21:45:40 +02:00
add command -dump_window_pos_at_exit=0
This commit is contained in:
parent
5fc803757a
commit
63334fa67c
2 changed files with 8 additions and 2 deletions
|
@ -137,6 +137,7 @@ namespace PersistentWindows.Common
|
||||||
"chrome", "firefox", "msedge", "vivaldi", "opera", "brave", "360ChromeX"
|
"chrome", "firefox", "msedge", "vivaldi", "opera", "brave", "360ChromeX"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
public bool dumpDataWhenExit = true;
|
||||||
private string windowPosDataFile = "window_pos.xml";
|
private string windowPosDataFile = "window_pos.xml";
|
||||||
private string snapshotTimeFile = "snapshot_time.xml";
|
private string snapshotTimeFile = "snapshot_time.xml";
|
||||||
|
|
||||||
|
@ -247,6 +248,7 @@ namespace PersistentWindows.Common
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
if (dumpDataWhenExit)
|
||||||
ReadDataDump();
|
ReadDataDump();
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|
|
@ -263,6 +263,9 @@ namespace PersistentWindows.SystrayShell
|
||||||
case "-auto_upgrade=1":
|
case "-auto_upgrade=1":
|
||||||
auto_upgrade = true;
|
auto_upgrade = true;
|
||||||
break;
|
break;
|
||||||
|
case "-dump_window_pos_at_exit=0":
|
||||||
|
pwp.dumpDataWhenExit = false;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -778,6 +781,7 @@ namespace PersistentWindows.SystrayShell
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
if (pwp.dumpDataWhenExit)
|
||||||
pwp.WriteDataDump();
|
pwp.WriteDataDump();
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue