This commit is contained in:
yj 2024-12-06 17:26:02 +08:00
parent b267f8bf4c
commit 844547d853
1 changed files with 4 additions and 4 deletions

View File

@ -142,11 +142,11 @@ app.on('ready', () => {
}); });
ipcMain.handle('setEnv', (event, str) => { ipcMain.handle('setEnv', (event, str) => {
envStr = str; envStr = str;
updateHandle() // 检查更新
setInterval(() => {
updateHandle() // 每一小时检查更新
}, 1000 * 60 * 60)
if (startNumber === 0) { if (startNumber === 0) {
updateHandle() // 检查更新
setInterval(() => {
updateHandle() // 每一小时检查更新
}, 1000 * 60 * 60)
createTray() createTray()
startNumber++ startNumber++
} }