diff --git a/src/features/editor/stores/settings/index.ts b/src/features/editor/stores/settings/index.ts index a567355..7efebc0 100644 --- a/src/features/editor/stores/settings/index.ts +++ b/src/features/editor/stores/settings/index.ts @@ -36,9 +36,9 @@ const _useSettingsStore = create()( loop_safeguard_timeout: 30000, persist_logs: false, layout_direction: 'horizontal', - isFirstTime: true, + isFirstTime: false, vimMode: false, - editorPlaceholder: false, + editorPlaceholder: true, debugMode: false, updateAutoRun: (value) => set({ auto_run: value }), updateAutoRunTimeout: (value) => set({ auto_run_timeout: value }), @@ -55,7 +55,7 @@ const _useSettingsStore = create()( }), { name: 'settings-storage', - version: 3, + version: 4, migrate: (persistedState, version) => { if (version === 0) { (persistedState as SettingsState).vimMode = false; @@ -68,6 +68,10 @@ const _useSettingsStore = create()( if (version === 2) { (persistedState as SettingsState).editorPlaceholder = true; } + if (version === 3) { + (persistedState as SettingsState).editorPlaceholder = true; + (persistedState as SettingsState).isFirstTime = false; + } return persistedState; },