Skip to content

Commit

Permalink
fix OnColorValuesChanged not executed on the ui thread (#15827)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hummel37 committed May 28, 2024
1 parent 4fdf4fa commit b904ded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Avalonia.FreeDesktop/DBusPlatformSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private async Task TryGetInitialValuesAsync()
_accentColor = await TryGetAccentColorAsync();
_lastColorValues = BuildPlatformColorValues();
if (_lastColorValues is not null)
OnColorValuesChanged(_lastColorValues);
Threading.Dispatcher.UIThread.Post(() => OnColorValuesChanged(_lastColorValues));
}

private async Task<PlatformThemeVariant?> TryGetThemeVariantAsync()
Expand Down

0 comments on commit b904ded

Please sign in to comment.