Skip to content

Commit

Permalink
fix: do not persist the state of showOverview
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Feb 25, 2024
1 parent 914baf0 commit 9011527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/state/index.ts
Expand Up @@ -5,6 +5,7 @@ import { slideAspect } from '../env'
export const showRecordingDialog = ref(false)
export const showInfoDialog = ref(false)
export const showGotoDialog = ref(false)
export const showOverview = ref(false)

export const shortcutsEnabled = ref(true)
export const breakpoints = useBreakpoints({
Expand All @@ -24,7 +25,6 @@ export const currentCamera = useLocalStorage<string>('slidev-camera', 'default',
export const currentMic = useLocalStorage<string>('slidev-mic', 'default', { listenToStorageChanges: false })
export const slideScale = useLocalStorage<number>('slidev-scale', 0)

export const showOverview = useLocalStorage('slidev-show-overview', false, { listenToStorageChanges: false })
export const showPresenterCursor = useLocalStorage('slidev-presenter-cursor', true, { listenToStorageChanges: false })
export const showEditor = useLocalStorage('slidev-show-editor', false, { listenToStorageChanges: false })
export const isEditorVertical = useLocalStorage('slidev-editor-vertical', false, { listenToStorageChanges: false })
Expand Down

0 comments on commit 9011527

Please sign in to comment.