Skip to content

Commit

Permalink
fix slow loading on settings
Browse files Browse the repository at this point in the history
  • Loading branch information
eythaann committed May 16, 2024
1 parent 634d443 commit a3a7e7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/apps/settings/modules/shared/store/infra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a3a7e7c

Please sign in to comment.