Skip to content

Commit

Permalink
Fix UI culture of message loop not getting updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sliekens committed Feb 2, 2025
1 parent d29cad7 commit bb899cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Blish HUD/GameServices/OverlayService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,9 @@ private void ShowInTaskbarOnSettingChanged(object sender, ValueChangedEventArgs<
private void UserLocaleOnSettingChanged(object sender, ValueChangedEventArgs<Locale> e) {
var culture = GetCultureFromGw2Locale(e.NewValue);

// Update the UI culture for the entire application domain by setting DefaultThreadCurrentUICulture
// DO NOT change CurrentUICulture, otherwise running threads will NOT get updated with the new default.
CultureInfo.DefaultThreadCurrentUICulture = culture;
CultureInfo.CurrentUICulture = culture;

this.UserLocaleChanged?.Invoke(this, new ValueEventArgs<CultureInfo>(culture));
}
Expand Down

0 comments on commit bb899cb

Please sign in to comment.