diff --git a/src/Ryujinx/UI/Views/Main/MainStatusBarView.axaml.cs b/src/Ryujinx/UI/Views/Main/MainStatusBarView.axaml.cs index 98024b49a..372bcf20b 100644 --- a/src/Ryujinx/UI/Views/Main/MainStatusBarView.axaml.cs +++ b/src/Ryujinx/UI/Views/Main/MainStatusBarView.axaml.cs @@ -2,6 +2,8 @@ using Avalonia; using Avalonia.Controls; using Avalonia.Input; using Avalonia.Interactivity; +using Avalonia.Threading; +using Ryujinx.Ava.Common.Locale; using Ryujinx.Ava.UI.Windows; using Ryujinx.Common.Configuration; using Ryujinx.Common.Logging; @@ -27,6 +29,11 @@ namespace Ryujinx.Ava.UI.Views.Main { Window = window; DataContext = window.ViewModel; + LocaleManager.Instance.LocaleChanged += () => Dispatcher.UIThread.Post(() => + { + if (Window.ViewModel.EnableNonGameRunningControls) + Refresh_OnClick(null, null); + }); } } @@ -48,10 +55,7 @@ namespace Ryujinx.Ava.UI.Views.Main ConfigurationState.Instance.Graphics.AspectRatio.Value = (int)aspectRatio + 1 > Enum.GetNames(typeof(AspectRatio)).Length - 1 ? AspectRatio.Fixed4x3 : aspectRatio + 1; } - private void Refresh_OnClick(object sender, RoutedEventArgs e) - { - Window.LoadApplications(); - } + private void Refresh_OnClick(object sender, RoutedEventArgs e) => Window.LoadApplications(); private void VolumeStatus_OnPointerWheelChanged(object sender, PointerWheelEventArgs e) {