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.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(electron): close app while on fullscreen should be minimize instead (#6534)
pengx176fe0c4be6ceb
diff --git a/packages/frontend/electron/src/main/main-window.ts b/packages/frontend/electron/src/main/main-window.tsindex ec7005d2d3..d4db3fd8bd 100644--- a/packages/frontend/electron/src/main/main-window.ts+++ b/packages/frontend/electron/src/main/main-window.ts@@ -127,7 +127,14 @@ async function createWindow(additionalArguments: string[]) {// - all browser windows will capture the "close" event// - the hidden window will close all windows// - "window-all-closed" event will be emitted and eventually quit the app- browserWindow.hide();+ if (browserWindow.isFullScreen()) {+ browserWindow.once('leave-full-screen', () => {+ browserWindow.hide();+ });+ browserWindow.setFullScreen(false);+ } else {+ browserWindow.hide();+ }}helperConnectionUnsub?.();helperConnectionUnsub = undefined;