speculative fix for failure to restore, due to write xml dump in realtime event handler

This commit is contained in:
Kang Yu 2025-02-04 12:18:47 -08:00
parent 4f7479b0b7
commit 8c710ab55c

View file

@ -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");
} }
} }
}; };