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): linux crash on exiting presentation mode (#6253)
EYHNd03c72a0a80d
diff --git a/packages/frontend/electron/src/main/main-window.ts b/packages/frontend/electron/src/main/main-window.tsindex 4f067a63fb..8b6147699a 100644--- a/packages/frontend/electron/src/main/main-window.ts+++ b/packages/frontend/electron/src/main/main-window.ts@@ -127,10 +127,13 @@ async function createWindow(additionalArguments: string[]) {});browserWindow.on('leave-full-screen', () => {- // FIXME: workaround for theme bug in full screen mode- const size = browserWindow.getSize();- browserWindow.setSize(size[0] + 1, size[1] + 1);- browserWindow.setSize(size[0], size[1]);+ // seems call this too soon may cause the app to crash+ setTimeout(() => {+ // FIXME: workaround for theme bug in full screen mode+ const size = browserWindow.getSize();+ browserWindow.setSize(size[0] + 1, size[1] + 1);+ browserWindow.setSize(size[0], size[1]);+ });uiSubjects.onMaximized.next(false);});