mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 08:17:16 +00:00
When setting a new theme, these three functions need to run in sequence.
AppDefaults.shared.currentThemeName = newValue
updateThemeNames()
updateCurrentTheme()
Within updateThemeNames() there is a `Task { @MainActor in }` that allows `updateCurrentTheme()` to complete before `updateThemeNames()`. In this scenario, when `updateCurrentTheme() is run the app hasnt got an itinerary of installed themes, so it sets the current them back to Default.
Removing the `Task` fixes the persistence issue.