fix: onboarding app should also setup app storage config (#6427)
This commit is contained in:
@@ -25,6 +25,12 @@ const performanceMainLogger = performanceLogger.namespace('main');
|
|||||||
function main() {
|
function main() {
|
||||||
performanceMainLogger.info('start');
|
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
|
// skip bootstrap setup for desktop onboarding
|
||||||
if (window.appInfo?.windowName === 'onboarding') {
|
if (window.appInfo?.windowName === 'onboarding') {
|
||||||
performanceMainLogger.info('skip setup');
|
performanceMainLogger.info('skip setup');
|
||||||
@@ -60,11 +66,7 @@ function main() {
|
|||||||
apis?.ui.handleNetworkChange(true);
|
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) => {
|
const handleMaximized = (maximized: boolean | undefined) => {
|
||||||
document.documentElement.dataset.maximized = String(maximized);
|
document.documentElement.dataset.maximized = String(maximized);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user