(source: SettingSource, id: string)
| 70 | })); |
| 71 | |
| 72 | const normalizeId = (source: SettingSource, id: string): string => { |
| 73 | if (source.type === 'plugin') { |
| 74 | return `plugin.${source.pluginId}.${id}`; |
| 75 | } |
| 76 | return `core.${id}`; |
| 77 | }; |
| 78 | |
| 79 | export const initializeSettingsStore = async (): Promise<void> => { |
| 80 | await useSettingsStore.getState().loadFromDisk(); |