Skip to content

Commit dbd958c

Browse files
committed
通知完系统空闲后停用空闲监测
1 parent 775b801 commit dbd958c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ComputerLock/Platforms/UserActivityMonitor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ private void Timer_Elapsed(object? sender, ElapsedEventArgs e)
5555
if (elapsedMillisecond > _autoLockMillisecond)
5656
{
5757
OnIdle?.Invoke(this, EventArgs.Empty);
58+
StopMonitoring();
5859
}
5960
}
6061
}

0 commit comments

Comments
 (0)