Skip to content

Commit cd5c512

Browse files
committed
fix(electron): auto update check on windows (#8137)
turns out activate event is only available on macos
1 parent d089470 commit cd5c512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/frontend/electron/src/main/updater/electron-updater.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export const registerUpdater = async () => {
142142

143143
// check update whenever the window is activated
144144
let lastCheckTime = 0;
145-
app.on('activate', () => {
145+
app.on('browser-window-focus', () => {
146146
(async () => {
147147
if (
148148
configured &&

0 commit comments

Comments
 (0)