diff --git a/src/Ryujinx.Ava/App.axaml.cs b/src/Ryujinx.Ava/App.axaml.cs index 387a6dc14..f27038aed 100644 --- a/src/Ryujinx.Ava/App.axaml.cs +++ b/src/Ryujinx.Ava/App.axaml.cs @@ -46,6 +46,10 @@ namespace Ryujinx.Ava ConfigurationState.Instance.UI.CustomThemePath.Event += ThemeChanged_Event; ConfigurationState.Instance.UI.EnableCustomTheme.Event += CustomThemeChanged_Event; } + else + { + ConfigurationState.Initialize(); + } } private void CustomThemeChanged_Event(object sender, ReactiveEventArgs e) diff --git a/src/Ryujinx.Ava/Common/Locale/LocaleManager.cs b/src/Ryujinx.Ava/Common/Locale/LocaleManager.cs index b2f3e7ab9..4f48aaa59 100644 --- a/src/Ryujinx.Ava/Common/Locale/LocaleManager.cs +++ b/src/Ryujinx.Ava/Common/Locale/LocaleManager.cs @@ -35,17 +35,13 @@ namespace Ryujinx.Ava.Common.Locale // Load the system Language Code. string localeLanguageCode = CultureInfo.CurrentCulture.Name.Replace('-', '_'); - // If the view is loaded with the UI Previewer detached, then override it with the saved one or default. - if (Program.PreviewerDetached) + if (!string.IsNullOrEmpty(ConfigurationState.Instance.Ui.LanguageCode.Value)) { - if (!string.IsNullOrEmpty(ConfigurationState.Instance.UI.LanguageCode.Value)) - { - localeLanguageCode = ConfigurationState.Instance.UI.LanguageCode.Value; - } - else - { - localeLanguageCode = DefaultLanguageCode; - } + localeLanguageCode = ConfigurationState.Instance.Ui.LanguageCode.Value; + } + else + { + localeLanguageCode = DefaultLanguageCode; } // Load en_US as default, if the target language translation is incomplete.