fix font overrides

This commit is contained in:
Henry Jameson 2026-03-25 11:56:09 +02:00
commit 54298927da
3 changed files with 7 additions and 6 deletions

View file

@ -27,6 +27,7 @@ export default {
},
emits: ['update:modelValue'],
data() {
console.log(this.fallback)
return {
manualEntry: false,
availableOptions: [
@ -45,7 +46,7 @@ export default {
},
computed: {
present() {
return typeof this.modelValue !== 'undefined'
return this.modelValue != null
},
localFontsList() {
return useInterfaceStore().localFonts

View file

@ -6,7 +6,7 @@
:id="name + '-o'"
class="font-checkbox setting-control setting-label"
:model-value="present"
@change="$emit('update:modelValue', typeof modelValue === 'undefined' ? fallback : undefined)"
@change="$emit('update:modelValue', modelValue == null ? fallback : null)"
>
<LocalSettingIndicator />
{{ ' ' }}