From f19f9831aa12a0bf3f9e346584d84fd7b0156040 Mon Sep 17 00:00:00 2001 From: Ac_K Date: Sun, 17 Mar 2024 02:12:50 +0100 Subject: [PATCH] Apply suggestions from code review --- src/Ryujinx/Common/Locale/LocaleManager.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Ryujinx/Common/Locale/LocaleManager.cs b/src/Ryujinx/Common/Locale/LocaleManager.cs index 85a48c2c91..2d3deeaa38 100644 --- a/src/Ryujinx/Common/Locale/LocaleManager.cs +++ b/src/Ryujinx/Common/Locale/LocaleManager.cs @@ -39,10 +39,11 @@ namespace Ryujinx.Ava.Common.Locale LoadDefaultLanguage(); LoadLanguage(localeLanguageCode); - // Save whatever we ended up with + // Save whatever we ended up with. if (Program.PreviewerDetached) { ConfigurationState.Instance.UI.LanguageCode.Value = _localeLanguageCode; + ConfigurationState.Instance.ToFileFormat().SaveConfig(Program.ConfigurationPath); } } @@ -151,7 +152,7 @@ namespace Ryujinx.Ava.Common.Locale if (languageJson == null) { - // We were unable to find file for that language code + // We were unable to find file for that language code. return null; }