fix(electron): auto update check on windows (#8137)

turns out activate event is only available on macos
This commit is contained in:
pengx17
2024-09-06 09:41:25 +00:00
parent d089470bbf
commit cd5c512a5f

View File

@@ -142,7 +142,7 @@ export const registerUpdater = async () => {
// check update whenever the window is activated
let lastCheckTime = 0;
app.on('activate', () => {
app.on('browser-window-focus', () => {
(async () => {
if (
configured &&