fix: onboarding app should also setup app storage config (#6427)

This commit is contained in:
pengx17 2024-04-01 07:04:39 +00:00
parent e33ab170d7
commit 23cb309714
No known key found for this signature in database
GPG Key ID: 23F23D9E8B3971ED

View File

@ -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);
};