From 6f193e0c241b1ed38813a279482c5caf41983b2f Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Wed, 3 Jun 2026 19:42:36 +0200 Subject: [PATCH] fix: make clicking the active theme a no-op --- components/settings/themes-settings.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/settings/themes-settings.tsx b/components/settings/themes-settings.tsx index a0744dda..cf345b48 100644 --- a/components/settings/themes-settings.tsx +++ b/components/settings/themes-settings.tsx @@ -48,6 +48,9 @@ export function ThemesSettings() { }, [activeThemeId, activateTheme, forcedThemeId, installedThemes, isThemeDisabled]); const handleActivate = (id: string | null) => { + // Clicking the already-active theme is a no-op (no re-apply, no toast). + if (id === activeThemeId) return; + if (forcedThemeId && id !== forcedThemeId) { const forcedTheme = installedThemes.find((theme) => theme.id === forcedThemeId); toast.info(`Theme "${forcedTheme?.name ?? 'Admin theme'}" is forced by admin and cannot be changed`);