mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 13:05:38 +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"
|
||||
};
|
||||
|
||||
public bool dumpDataWhenExit = true;
|
||||
private string windowPosDataFile = "window_pos.xml";
|
||||
private string snapshotTimeFile = "snapshot_time.xml";
|
||||
|
||||
|
@ -247,7 +248,8 @@ namespace PersistentWindows.Common
|
|||
{
|
||||
try
|
||||
{
|
||||
ReadDataDump();
|
||||
if (dumpDataWhenExit)
|
||||
ReadDataDump();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
|
@ -263,6 +263,9 @@ namespace PersistentWindows.SystrayShell
|
|||
case "-auto_upgrade=1":
|
||||
auto_upgrade = true;
|
||||
break;
|
||||
case "-dump_window_pos_at_exit=0":
|
||||
pwp.dumpDataWhenExit = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -778,7 +781,8 @@ namespace PersistentWindows.SystrayShell
|
|||
{
|
||||
try
|
||||
{
|
||||
pwp.WriteDataDump();
|
||||
if (pwp.dumpDataWhenExit)
|
||||
pwp.WriteDataDump();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue