bugfix: Finally fix theme application

This commit is contained in:
Alphons Joseph
2025-03-18 19:03:23 +08:00
parent 8e34db4a67
commit 7a76d3f4eb
4 changed files with 8 additions and 8 deletions
@@ -11,7 +11,6 @@
import { OpenStorePage } from '@/seqta/ui/renderStore'
import { themeUpdates } from '@/interface/hooks/ThemeUpdates'
import { closeExtensionPopup } from '@/seqta/utils/Closers/closeExtensionPopup'
import { settingsState } from '@/seqta/utils/listeners/SettingsState'
let themes = $state<ThemeList | null>(null);
let { isEditMode } = $props<{ isEditMode: boolean }>();
@@ -25,7 +24,6 @@
themes.selectedTheme = '';
} else {
await setTheme(theme.id);
settingsState.selectedColor = theme.defaultColour; // settingsState and the theme need to be synchronised.
if (!themes) return;
themes.selectedTheme = theme.id;
}