mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-08-18 22:58:43 +02:00
* Ava UI: Fix `string.Format` issues in Locale * LoacLanguage everytime now * Apply suggestions from code review Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * fix UpdateAndGetDynamicValue Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com>
19 lines
546 B
C#
19 lines
546 B
C#
using LibHac.Ns;
|
|
using Ryujinx.Ava.Common.Locale;
|
|
|
|
namespace Ryujinx.Ava.UI.Models
|
|
{
|
|
public class TitleUpdateModel
|
|
{
|
|
public ApplicationControlProperty Control { get; }
|
|
public string Path { get; }
|
|
|
|
public string Label => LocaleManager.Instance.UpdateAndGetDynamicValue(LocaleKeys.TitleUpdateVersionLabel, Control.DisplayVersionString.ToString());
|
|
|
|
public TitleUpdateModel(ApplicationControlProperty control, string path)
|
|
{
|
|
Control = control;
|
|
Path = path;
|
|
}
|
|
}
|
|
} |