Fix LocaleExtension SetRawSource usages + language perf improvement (#7121)

* Avoid Avalonia CompiledBindingPathBuilder.SetRawSource

* Improve UI language change performance
This commit is contained in:
Julien Lebosquain
2024-08-04 20:04:12 +02:00
committed by GitHub
parent 42f22fe5d7
commit e85ee673b1
2 changed files with 8 additions and 3 deletions

View File

@ -139,9 +139,11 @@ namespace Ryujinx.Ava.Common.Locale
foreach (var item in locale)
{
this[item.Key] = item.Value;
_localeStrings[item.Key] = item.Value;
}
OnPropertyChanged("Item");
LocaleChanged?.Invoke();
}