mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 04:55:39 +02:00
speculative fix for failure to restore, due to write xml dump in realtime event handler
This commit is contained in:
parent
4f7479b0b7
commit
8c710ab55c
1 changed files with 3 additions and 2 deletions
|
@ -767,6 +767,8 @@ 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))
|
||||||
|
@ -882,8 +884,7 @@ namespace PersistentWindows.Common
|
||||||
if (!fullScreenGamingConfig.Contains(display_key))
|
if (!fullScreenGamingConfig.Contains(display_key))
|
||||||
UndoCapture(lastDisplayChangeTime);
|
UndoCapture(lastDisplayChangeTime);
|
||||||
|
|
||||||
WriteDataDump();
|
Log.Event("Display session changed");
|
||||||
Log.Event("Display session changed, dump history in xml");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue