A free, open source, and extensible speech-to-text application that works completely offline.
fix: add missing defaults option to plugin-store load() call (#288)
Jinhyeok Leed274a28dbf0e
diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.tsindex d57b82fc..02e1fb13 100644--- a/src/stores/settingsStore.ts+++ b/src/stores/settingsStore.ts@@ -134,7 +134,10 @@ export const useSettingsStore = create<SettingsStore>()(refreshSettings: async () => {try {const { load } = await import("@tauri-apps/plugin-store");- const store = await load("settings_store.json", { autoSave: false });+ const store = await load("settings_store.json", {+ defaults: DEFAULT_SETTINGS,+ autoSave: false+ });const settings = (await store.get("settings")) as Settings;// Load additional settings that come from invoke calls