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: onboarding app should also setup app storage config (#6427)

pengx1723cb30971493
diff --git a/packages/frontend/electron/renderer/index.tsx b/packages/frontend/electron/renderer/index.tsx
index e92fb2b15d..043b0eb6be 100644
--- a/packages/frontend/electron/renderer/index.tsx
+++ b/packages/frontend/electron/renderer/index.tsx
@@ -25,6 +25,12 @@ const performanceMainLogger = performanceLogger.namespace('main');
function main() {
performanceMainLogger.info('start');
+ // load persistent config for electron
+ // TODO: should be sync, but it's not necessary for now
+ appConfigProxy
+ .getSync()
+ .catch(() => console.error('failed to load app config'));
+
// skip bootstrap setup for desktop onboarding
if (window.appInfo?.windowName === 'onboarding') {
performanceMainLogger.info('skip setup');
@@ -60,11 +66,7 @@ function main() {
apis?.ui.handleNetworkChange(true);
});
}
- // load persistent config for electron
- // TODO: should be sync, but it's not necessary for now
- appConfigProxy
- .getSync()
- .catch(() => console.error('failed to load app config'));
+
const handleMaximized = (maximized: boolean | undefined) => {
document.documentElement.dataset.maximized = String(maximized);
};