From a3a7e7c1a149d858454db93b117321926e98e798 Mon Sep 17 00:00:00 2001 From: eythaann Date: Thu, 16 May 2024 15:40:56 -0500 Subject: [PATCH] fix slow loading on settings --- src/apps/settings/modules/shared/store/infra.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/apps/settings/modules/shared/store/infra.ts b/src/apps/settings/modules/shared/store/infra.ts index 128dec26..70934b00 100644 --- a/src/apps/settings/modules/shared/store/infra.ts +++ b/src/apps/settings/modules/shared/store/infra.ts @@ -24,7 +24,9 @@ export type store = { }; export const LoadSettingsToStore = async (customPath?: string) => { - store.dispatch(RootActions.setAutostart(await startup.isEnabled())); + startup.isEnabled().then((value) => { + store.dispatch(RootActions.setAutostart(value)); + }); const appsTemplate = await loadAppsTemplates(); store.dispatch(