mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-15 01:31:16 +01:00
02714a1291
* Add source generator for locale keys * use locale keys in Ui subdir
25 lines
789 B
C#
25 lines
789 B
C#
using LibHac.Ns;
|
|
using Ryujinx.Ava.Common.Locale;
|
|
|
|
namespace Ryujinx.Ava.UI.Models
|
|
{
|
|
internal class TitleUpdateModel
|
|
{
|
|
public bool IsEnabled { get; set; }
|
|
public bool IsNoUpdate { get; }
|
|
public ApplicationControlProperty Control { get; }
|
|
public string Path { get; }
|
|
|
|
public string Label => IsNoUpdate
|
|
? LocaleManager.Instance[LocaleKeys.NoUpdate]
|
|
: string.Format(LocaleManager.Instance[LocaleKeys.TitleUpdateVersionLabel], Control.DisplayVersionString.ToString(),
|
|
Path);
|
|
|
|
public TitleUpdateModel(ApplicationControlProperty control, string path, bool isNoUpdate = false)
|
|
{
|
|
Control = control;
|
|
Path = path;
|
|
IsNoUpdate = isNoUpdate;
|
|
}
|
|
}
|
|
} |