mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-10 20:45:38 +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);
|
||||
sessionActive = true;
|
||||
|
||||
WriteDataDump();
|
||||
|
||||
if (!wasRestoringSnapshot && !wasRestoringFromDB)
|
||||
{
|
||||
if (!snapshotTakenTime.ContainsKey(curDisplayKey))
|
||||
|
@ -882,8 +884,7 @@ namespace PersistentWindows.Common
|
|||
if (!fullScreenGamingConfig.Contains(display_key))
|
||||
UndoCapture(lastDisplayChangeTime);
|
||||
|
||||
WriteDataDump();
|
||||
Log.Event("Display session changed, dump history in xml");
|
||||
Log.Event("Display session changed");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue