mirror of
https://github.com/Equicord/Equicord.git
synced 2025-02-07 08:44:31 -05:00
Fix Online Theme Deletion
This commit is contained in:
parent
3496fec74e
commit
3d8c757e75
1 changed files with 4 additions and 1 deletions
|
@ -446,7 +446,10 @@ function ThemesTab() {
|
||||||
key={rawLink.fileName}
|
key={rawLink.fileName}
|
||||||
enabled={settings.enabledThemeLinks.includes(rawLink.link)}
|
enabled={settings.enabledThemeLinks.includes(rawLink.link)}
|
||||||
onChange={enabled => onThemeLinkEnabledChange(rawLink.link, enabled)}
|
onChange={enabled => onThemeLinkEnabledChange(rawLink.link, enabled)}
|
||||||
onDelete={() => deleteThemeLink(rawLink.link)}
|
onDelete={async () => {
|
||||||
|
onThemeLinkEnabledChange(rawLink.link, false);
|
||||||
|
deleteThemeLink(rawLink.link);
|
||||||
|
}}
|
||||||
showDeleteButton
|
showDeleteButton
|
||||||
theme={rawLink}
|
theme={rawLink}
|
||||||
/>;
|
/>;
|
||||||
|
|
Loading…
Reference in a new issue