undo early raising process priority due to restore failure

This commit is contained in:
Kang Yu 2024-10-15 12:12:11 -07:00
parent 580a0864e2
commit 5d15d4c042

View file

@ -791,8 +791,6 @@ namespace PersistentWindows.Common
this.displaySettingsChangingHandler =
(s, e) =>
{
process.PriorityClass = ProcessPriorityClass.High;
if (!freezeCapture)
{
lastDisplayChangeTime = DateTime.Now;
@ -3220,6 +3218,8 @@ namespace PersistentWindows.Common
Log.Trace("Restore timer expired");
process.PriorityClass = ProcessPriorityClass.High;
lock (restoreLock)
BatchRestoreApplicationsOnCurrentDisplays();
}