mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-10 20:45:38 +02:00
no need to write xml when restore finished, as it is done in session end
This commit is contained in:
parent
2c06fe1684
commit
e8f06c1368
1 changed files with 4 additions and 5 deletions
|
@ -769,8 +769,6 @@ namespace PersistentWindows.Common
|
||||||
Log.Event("Restore finished in pass {0} with {1} windows recovered for display setting {2}", restorePass, numWindowRestored, curDisplayKey);
|
Log.Event("Restore finished in pass {0} with {1} windows recovered for display setting {2}", restorePass, numWindowRestored, curDisplayKey);
|
||||||
sessionActive = true;
|
sessionActive = true;
|
||||||
|
|
||||||
WriteDataDump();
|
|
||||||
|
|
||||||
if (!wasRestoringSnapshot && !wasRestoringFromDB)
|
if (!wasRestoringSnapshot && !wasRestoringFromDB)
|
||||||
{
|
{
|
||||||
if (!snapshotTakenTime.ContainsKey(curDisplayKey))
|
if (!snapshotTakenTime.ContainsKey(curDisplayKey))
|
||||||
|
@ -865,6 +863,7 @@ namespace PersistentWindows.Common
|
||||||
(s, e) =>
|
(s, e) =>
|
||||||
{
|
{
|
||||||
process.PriorityClass = ProcessPriorityClass.High;
|
process.PriorityClass = ProcessPriorityClass.High;
|
||||||
|
EndDisplaySession();
|
||||||
WriteDataDump();
|
WriteDataDump();
|
||||||
Log.Event("Session ending");
|
Log.Event("Session ending");
|
||||||
};
|
};
|
||||||
|
@ -873,6 +872,9 @@ namespace PersistentWindows.Common
|
||||||
this.displaySettingsChangingHandler =
|
this.displaySettingsChangingHandler =
|
||||||
(s, e) =>
|
(s, e) =>
|
||||||
{
|
{
|
||||||
|
if (fastRestore)
|
||||||
|
process.PriorityClass = ProcessPriorityClass.High;
|
||||||
|
|
||||||
if (!freezeCapture)
|
if (!freezeCapture)
|
||||||
{
|
{
|
||||||
lastDisplayChangeTime = DateTime.Now;
|
lastDisplayChangeTime = DateTime.Now;
|
||||||
|
@ -895,9 +897,6 @@ namespace PersistentWindows.Common
|
||||||
this.displaySettingsChangedHandler =
|
this.displaySettingsChangedHandler =
|
||||||
(s, e) =>
|
(s, e) =>
|
||||||
{
|
{
|
||||||
if (fastRestore)
|
|
||||||
process.PriorityClass = ProcessPriorityClass.High;
|
|
||||||
|
|
||||||
string displayKey = GetDisplayKey();
|
string displayKey = GetDisplayKey();
|
||||||
Log.Event("Display settings changed {0}", displayKey);
|
Log.Event("Display settings changed {0}", displayKey);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue