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++ }