diff --git a/electron/CONFIG.ts b/electron/CONFIG.ts index 1c7225303..e4e49693d 100644 --- a/electron/CONFIG.ts +++ b/electron/CONFIG.ts @@ -1,4 +1,5 @@ export const CONFIG = { D_BUS_ID: 'com.super.productivity.service', IDLE_PING_INTERVAL: 5000, + MIN_IDLE_TIME: 15000, }; diff --git a/electron/main.ts b/electron/main.ts index e3cb5f578..864ccd680 100644 --- a/electron/main.ts +++ b/electron/main.ts @@ -258,7 +258,7 @@ function idleChecker() { // don't update if the user is about to close // tslint:disable-next-line - if (!app_.isQuiting) { + if (!app_.isQuiting && idleTime > CONFIG.MIN_IDLE_TIME) { mainWin.webContents.send(IPC_IDLE_TIME, idleTime); } });