mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 04:55:39 +02:00
speedup auto restore
This commit is contained in:
parent
5d286a467d
commit
e04dc2ee07
1 changed files with 2 additions and 2 deletions
|
@ -742,6 +742,8 @@ 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;
|
||||||
|
@ -3062,8 +3064,6 @@ 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