mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 13:05:38 +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();
|
||||
});
|
||||
|
||||
restoreTimer = new Timer(state => { TimerRestore(); });
|
||||
restoreTimer = new Timer(TimerRestore);
|
||||
|
||||
restoreFinishedTimer = new Timer(state =>
|
||||
{
|
||||
|
@ -3329,7 +3329,7 @@ namespace PersistentWindows.Common
|
|||
return moved;
|
||||
}
|
||||
|
||||
private void TimerRestore()
|
||||
private void TimerRestore(object state)
|
||||
{
|
||||
if (pauseAutoRestore && !restoringFromDB && !restoringSnapshot)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue