Fix theme store race condition (#4885)

Co-authored-by: Calum H. <contact@cal.engineer>
This commit is contained in:
Nicholis
2026-01-12 14:15:34 +02:00
committed by GitHub
parent 21045142cd
commit 915d8c68bf

View File

@@ -221,7 +221,6 @@ const messages = defineMessages({
})
async function setupApp() {
stateInitialized.value = true
const {
native_decorations,
theme,
@@ -260,6 +259,7 @@ async function setupApp() {
themeStore.toggleSidebar = toggle_sidebar
themeStore.devMode = developer_mode
themeStore.featureFlags = feature_flags
stateInitialized.value = true
isMaximized.value = await getCurrentWindow().isMaximized()