From e979a1f9e2c86d60c7ee3ba48fb0dc42a3b65aa0 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Thu, 15 Oct 2026 19:02:58 -0400 Subject: [PATCH] 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. --- src/lib/components/common/InterfaceSettings.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/components/common/InterfaceSettings.svelte b/src/lib/components/common/InterfaceSettings.svelte index 084afcd3be..e92a0cb439 100644 --- a/src/lib/components/common/InterfaceSettings.svelte +++ b/src/lib/components/common/InterfaceSettings.svelte @@ -246,8 +246,10 @@ } saveSettings({ - imageCompressionSize: imageCompressionSize, - fontFamily + ...(isDefaultSetting('imageCompressionSize') ? {} : { imageCompressionSize }), + ...(isDefaultSetting('fontFamily') && fontFamily === defaultFontFamily() + ? {} + : { fontFamily }) }); };