mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 04:55:39 +02:00
#369, more consistent behavior for -delay_auto_restore
This commit is contained in:
parent
3c6f053b00
commit
04e569fbcb
1 changed files with 6 additions and 1 deletions
|
@ -951,7 +951,7 @@ namespace PersistentWindows.Common
|
|||
else
|
||||
{
|
||||
restoringFromMem = true;
|
||||
StartRestoreTimer(milliSecond: UserForcedRestoreLatency > 0 ? UserForcedRestoreLatency : RestoreLatency);
|
||||
StartRestoreTimer();
|
||||
}
|
||||
}
|
||||
else if (error == 0 && pquns.HasFlag(Shell32.QUERY_USER_NOTIFICATION_STATE.QUNS_RUNNING_D3D_FULL_SCREEN))
|
||||
|
@ -2671,6 +2671,11 @@ namespace PersistentWindows.Common
|
|||
|
||||
public void StartRestoreTimer(int milliSecond = RestoreLatency)
|
||||
{
|
||||
if (UserForcedRestoreLatency > RestoreLatency)
|
||||
{
|
||||
if (!restoringFromDB && !restoringSnapshot)
|
||||
milliSecond = UserForcedCaptureLatency;
|
||||
}
|
||||
restoreTimer.Change(milliSecond, Timeout.Infinite);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue