Apply pending shell theme after background polling

This commit is contained in:
David Heinemeier Hansson
2026-06-22 19:57:05 +02:00
parent cdd833facb
commit 4773202ab0
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -70,7 +70,9 @@ Item {
}
function applyPendingTheme() {
if (pendingThemeVersion !== backgroundVersion) return
// Background polling can advance backgroundVersion while a theme switch is
// pending; the latest theme payload should still apply.
if (pendingThemeVersion < 0) return
pendingThemeFallbackTimer.stop()
Color.loadColors(pendingColorsRaw)
// Color.loadShell also refreshes Style so the type scale flips with the