fix(useConfigStore): align voiceModeEnabled with localStorage
This commit is contained in:
@@ -537,13 +537,13 @@ export const useConfigStore = create<ConfigStore>()(
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
})(),
|
})(),
|
||||||
// Voice mode enabled - load from localStorage or default to true
|
// Voice mode enabled - load from localStorage or default to false
|
||||||
voiceModeEnabled: (() => {
|
voiceModeEnabled: (() => {
|
||||||
if (typeof window !== 'undefined') {
|
if (typeof window !== 'undefined') {
|
||||||
const saved = localStorage.getItem('voiceModeEnabled');
|
const saved = localStorage.getItem('voiceModeEnabled');
|
||||||
if (saved === 'false') return false;
|
if (saved === 'true') return true;
|
||||||
}
|
}
|
||||||
return true;
|
return false;
|
||||||
})(),
|
})(),
|
||||||
// Summarization settings
|
// Summarization settings
|
||||||
summarizeMessageTTS: (() => {
|
summarizeMessageTTS: (() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user