Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

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

pengx17cd5c512a5fcd
diff --git a/packages/frontend/electron/src/main/updater/electron-updater.ts b/packages/frontend/electron/src/main/updater/electron-updater.ts
index 0609bd8028..c71a6324b2 100644
--- a/packages/frontend/electron/src/main/updater/electron-updater.ts
+++ b/packages/frontend/electron/src/main/updater/electron-updater.ts
@@ -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 &&