Skip to content

Commit 5bfa885

Browse files
committed
prevent idle spam in logs
1 parent 56e567c commit 5bfa885

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CompactGUI.Watcher/Watcher.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ Partial Public Class Watcher : Inherits ObservableRecipient : Implements IRecipi
7575
Private _isSystemIdle As Boolean = False
7676

7777
Private Async Sub OnSystemIdle()
78+
If Not _isSystemIdle Then WatcherLog.SystemIdleDetected(_logger)
7879
_isSystemIdle = True
79-
WatcherLog.SystemIdleDetected(_logger)
8080

8181
'Skip idle analysis if the background mode is not set to IdleOnly
8282
Dim bgMode = _settingsService.AppSettings.BackgroundModeSelection

0 commit comments

Comments
 (0)