Apply suggestions from code review

This commit is contained in:
Ac_K 2024-03-17 02:12:50 +01:00 committed by GitHub
parent 14a3efcfde
commit f19f9831aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}