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