mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-12 13:35:39 +02:00
simplify Timer lambda
This commit is contained in:
parent
886182afc1
commit
b03ddd4470
1 changed files with 2 additions and 2 deletions
|
@ -701,7 +701,7 @@ namespace PersistentWindows.Common
|
||||||
BatchCaptureApplicationsOnCurrentDisplays();
|
BatchCaptureApplicationsOnCurrentDisplays();
|
||||||
});
|
});
|
||||||
|
|
||||||
restoreTimer = new Timer(state => { TimerRestore(); });
|
restoreTimer = new Timer(TimerRestore);
|
||||||
|
|
||||||
restoreFinishedTimer = new Timer(state =>
|
restoreFinishedTimer = new Timer(state =>
|
||||||
{
|
{
|
||||||
|
@ -3329,7 +3329,7 @@ namespace PersistentWindows.Common
|
||||||
return moved;
|
return moved;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void TimerRestore()
|
private void TimerRestore(object state)
|
||||||
{
|
{
|
||||||
if (pauseAutoRestore && !restoringFromDB && !restoringSnapshot)
|
if (pauseAutoRestore && !restoringFromDB && !restoringSnapshot)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue