Skip to content

Commit

Permalink
fix: onboarding app should also setup app storage config (#6427)
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Apr 1, 2024
1 parent e33ab17 commit 23cb309
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/frontend/electron/renderer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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);
};
Expand Down

0 comments on commit 23cb309

Please sign in to comment.