fix: saving Settings > Interface no longer turns the admin's default font into your own (#32497)

The Interface tab's Save sent fontFamily and imageCompressionSize every
time, read from the settings store, which already carries the admin's
Default Interface Settings for anything the user has not set. One Save
with nothing changed therefore stored the admin's default as a personal
value: the row switched from "Default" to "Custom", and a later change
to the admin default never reached that account.

Leave a value out of that Save while the user only inherits it, as
isDefaultSetting already decides for the "Default" label. Values the
user set keep saving as before.
This commit is contained in:
G30 2026-10-15 19:02:58 -04:00 • committed by GitHub
parent 7da8653e71
commit e979a1f9e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -246,8 +246,10 @@
}
saveSettings({
imageCompressionSize: imageCompressionSize,
fontFamily
...(isDefaultSetting('imageCompressionSize') ? {} : { imageCompressionSize }),
...(isDefaultSetting('fontFamily') && fontFamily === defaultFontFamily()
? {}
: { fontFamily })
});
};