mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
feat: keep theme enabled after editing
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
import { CloseThemeCreator } from '@/seqta/ui/ThemeCreator'
|
import { CloseThemeCreator } from '@/seqta/ui/ThemeCreator'
|
||||||
import { themeUpdates } from '../hooks/ThemeUpdates'
|
import { themeUpdates } from '../hooks/ThemeUpdates'
|
||||||
import { disableTheme } from '@/seqta/ui/themes/disableTheme'
|
import { disableTheme } from '@/seqta/ui/themes/disableTheme'
|
||||||
|
import { setTheme } from '@/seqta/ui/themes/setTheme'
|
||||||
|
|
||||||
const { themeID } = $props<{ themeID: string }>()
|
const { themeID } = $props<{ themeID: string }>()
|
||||||
let theme = $state<LoadedCustomTheme>({
|
let theme = $state<LoadedCustomTheme>({
|
||||||
@@ -111,6 +112,7 @@
|
|||||||
|
|
||||||
ClearThemePreview();
|
ClearThemePreview();
|
||||||
saveTheme(themeClone);
|
saveTheme(themeClone);
|
||||||
|
setTheme(themeClone.id);
|
||||||
themeUpdates.triggerUpdate();
|
themeUpdates.triggerUpdate();
|
||||||
CloseThemeCreator();
|
CloseThemeCreator();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user