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.

chore(electron): disable onboarding (#9332)

CatsJuice690a79b90568
diff --git a/packages/frontend/apps/electron/src/main/windows-manager/launcher.ts b/packages/frontend/apps/electron/src/main/windows-manager/launcher.ts
index 59518d04f0..854ed5a57a 100644
--- a/packages/frontend/apps/electron/src/main/windows-manager/launcher.ts
+++ b/packages/frontend/apps/electron/src/main/windows-manager/launcher.ts
@@ -1,24 +1,11 @@
import { logger } from '../logger';
import { initAndShowMainWindow } from './main-window';
-import { getOnboardingWindow, getOrCreateOnboardingWindow } from './onboarding';
-import { launchStage } from './stage';
/**
* Launch app depending on launch stage
*/
export async function launch() {
- const stage = launchStage.value;
- if (stage === 'main') {
- initAndShowMainWindow().catch(e => {
- logger.error('Failed to restore or create window:', e);
- });
-
- getOnboardingWindow()
- .then(w => w?.destroy())
- .catch(e => logger.error('Failed to destroy onboarding window:', e));
- }
- if (stage === 'onboarding')
- getOrCreateOnboardingWindow().catch(e => {
- logger.error('Failed to restore or create onboarding window:', e);
- });
+ initAndShowMainWindow().catch(e => {
+ logger.error('Failed to restore or create window:', e);
+ });
}