From 65ce5dc8dbd4d9b5aba3fdb158cf66936b5fd455 Mon Sep 17 00:00:00 2001 From: Kubat <mael.martin31@gmail.com> Date: Mon, 22 Feb 2021 08:28:20 +0100 Subject: [PATCH] Place idle timouts at the correct place, when lektord is available --- main.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/main.js b/main.js index f69a3de..c3192d6 100644 --- a/main.js +++ b/main.js @@ -174,13 +174,6 @@ app.on('ready', () => { focused.webContents.openDevTools(); } }); - - setTimeout(() => { - lkt.idleActualisation(); - }, 1000); - setTimeout(() => { - lkt.statusActualisation(); - }, 1500); }); /*************** @@ -290,6 +283,8 @@ ipcMain.on('verify-lektord', (event, arg) => { lkt.ping().then(sta => { logger.debug('main', `Status from ping is ${sta}`); lkt.reloadState(); + setTimeout(() => lkt.idleActualisation(), 1000); + setTimeout(() => lkt.statusActualisation(), 1500); event.reply('send-lektord'); }); }); -- GitLab