From e49849c18a41841b63471cff6ee27ff95b74cedf Mon Sep 17 00:00:00 2001 From: sethburkart123 Date: Fri, 20 Sep 2024 16:03:57 +1000 Subject: [PATCH] feat(settings): auto close popup when opening theme creator --- .../components/themes/ThemeSelector.svelte | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/svelte-interface/components/themes/ThemeSelector.svelte b/src/svelte-interface/components/themes/ThemeSelector.svelte index 6c6c9457..15c95b71 100644 --- a/src/svelte-interface/components/themes/ThemeSelector.svelte +++ b/src/svelte-interface/components/themes/ThemeSelector.svelte @@ -10,6 +10,7 @@ import { deleteTheme } from '@/seqta/ui/themes/deleteTheme' import { OpenStorePage } from '@/seqta/ui/renderStore' import { themeUpdates } from '@/svelte-interface/hooks/ThemeUpdates' + import { closeExtensionPopup } from '@/SEQTA' let themes = $state(null); let { isEditMode } = $props<{ isEditMode: boolean }>(); @@ -32,7 +33,7 @@ try { await deleteTheme(themeId); if (!themes) return; - + themes.themes = themes.themes.filter(theme => theme.id !== themeId); if (themeId === themes.selectedTheme) { themes.selectedTheme = ''; @@ -138,7 +139,7 @@
{/if} - + {#if !isEditMode}
- \ No newline at end of file +