mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 04:55:39 +02:00
undo early raising process priority due to restore failure
This commit is contained in:
parent
580a0864e2
commit
5d15d4c042
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue