feat: keep theme enabled after editing

This commit is contained in:
SethBurkart123
2025-02-11 19:03:19 +11:00
parent 3ce075cd47
commit 23a09004d8
+2
View File
@@ -27,6 +27,7 @@
import { CloseThemeCreator } from '@/seqta/ui/ThemeCreator'
import { themeUpdates } from '../hooks/ThemeUpdates'
import { disableTheme } from '@/seqta/ui/themes/disableTheme'
import { setTheme } from '@/seqta/ui/themes/setTheme'
const { themeID } = $props<{ themeID: string }>()
let theme = $state<LoadedCustomTheme>({
@@ -111,6 +112,7 @@
ClearThemePreview();
saveTheme(themeClone);
setTheme(themeClone.id);
themeUpdates.triggerUpdate();
CloseThemeCreator();
}