From d1cda5c6e806d35872b241d3555fe2daa266b164 Mon Sep 17 00:00:00 2001 From: Xander Frangos <33106561+xanderfrangos@users.noreply.github.com> Date: Fri, 8 Jul 2022 13:17:00 -0400 Subject: [PATCH] Fully fix idle detection running when disabled --- src/electron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/electron.js b/src/electron.js index 731b4c72..687a2cc9 100644 --- a/src/electron.js +++ b/src/electron.js @@ -2717,7 +2717,7 @@ function startIdleCheckShort() { function idleCheckShort() { const idleTime = powerMonitor.getSystemIdleTime() - if (!userIdleDimmed && settings.detectIdleTime && idleTime >= settings.detectIdleTime) { + if (!userIdleDimmed && settings.detectIdleTime * 1 > 0 && idleTime >= settings.detectIdleTime) { console.log(`\x1b[36mUser idle. Dimming displays.\x1b[0m`) userIdleDimmed = true Object.values(monitors)?.forEach((monitor) => {