Repository navigation
Commit 198cd74
committed
fix(themer): unset the theme for the config theme, persist the snapshot in step
The crossfader compared `resolveActiveThemeOptions`, which returns
`undefined` when the Studio's configured theme is the active one, to
`null`: `unset-theme` never ran, and the `undefined` that `set-theme`
stored instead had `buildTheme` replace the configured theme with the
stock one.
The persisted snapshot is now written as the machine writes the state it
restores from, rather than when the browser next idles — a snapshot that
lagged behind was still the one the actor restored from after a reload,
and the machine then persisted those older themes over the newer ones.1 parent 9bffed5 commit 198cd74
1 file changed
Lines changed: 9 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
338 | 344 | | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | 345 | | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
| 346 | + | |
358 | 347 | | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
| 348 | + | |
363 | 349 | | |
364 | 350 | | |
365 | 351 | | |
| |||
0 commit comments