diff --git a/src/components/ThemeSettings/ThemesTab.tsx b/src/components/ThemeSettings/ThemesTab.tsx index b5c4c58a..ff266192 100644 --- a/src/components/ThemeSettings/ThemesTab.tsx +++ b/src/components/ThemeSettings/ThemesTab.tsx @@ -446,7 +446,10 @@ function ThemesTab() { key={rawLink.fileName} enabled={settings.enabledThemeLinks.includes(rawLink.link)} onChange={enabled => onThemeLinkEnabledChange(rawLink.link, enabled)} - onDelete={() => deleteThemeLink(rawLink.link)} + onDelete={async () => { + onThemeLinkEnabledChange(rawLink.link, false); + deleteThemeLink(rawLink.link); + }} showDeleteButton theme={rawLink} />;