From 844547d8534fffa1d8115caf9fb958138d60e895 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Fri, 6 Dec 2024 17:26:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.js b/main.js index 5cec9f8..b13d136 100644 --- a/main.js +++ b/main.js @@ -142,11 +142,11 @@ app.on('ready', () => { }); ipcMain.handle('setEnv', (event, str) => { envStr = str; - updateHandle() // 检查更新 - setInterval(() => { - updateHandle() // 每一小时检查更新 - }, 1000 * 60 * 60) if (startNumber === 0) { + updateHandle() // 检查更新 + setInterval(() => { + updateHandle() // 每一小时检查更新 + }, 1000 * 60 * 60) createTray() startNumber++ }