fix font settings

This commit is contained in:
Henry Jameson 2026-03-18 15:08:52 +02:00
commit b2ec9cb890
2 changed files with 4 additions and 10 deletions

View file

@ -69,14 +69,8 @@ const GeneralTab = {
},
updateFont(key, value) {
useLocalConfigStore().set({
path: 'theme3hacks',
value: {
...this.mergedConfig.theme3hacks,
fonts: {
...this.mergedConfig.theme3hacks.fonts,
[key]: value,
},
},
path: `theme3hacks.fonts.${key}`,
value,
})
},
},

View file

@ -33,9 +33,9 @@ export const useLocalConfigStore = defineStore('local_config', {
set(this.prefsStorage, path, undefined)
},
clearLocalConfig() {
const blankState = { ...cloneDeep(defaultState) }
Object.keys(this).forEach((k) => {
this.prefsStorage[k] = blankState[k]
this.prefsStorage[k] = undefined
this.tempStorage[k] = undefined
})
},
},