diff options
Diffstat (limited to 'Ryujinx.Ava/UI/Models/TitleUpdateModel.cs')
-rw-r--r-- | Ryujinx.Ava/UI/Models/TitleUpdateModel.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Ryujinx.Ava/UI/Models/TitleUpdateModel.cs b/Ryujinx.Ava/UI/Models/TitleUpdateModel.cs new file mode 100644 index 00000000..77203222 --- /dev/null +++ b/Ryujinx.Ava/UI/Models/TitleUpdateModel.cs @@ -0,0 +1,25 @@ +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["NoUpdate"] + : string.Format(LocaleManager.Instance["TitleUpdateVersionLabel"], Control.DisplayVersionString.ToString(), + Path); + + public TitleUpdateModel(ApplicationControlProperty control, string path, bool isNoUpdate = false) + { + Control = control; + Path = path; + IsNoUpdate = isNoUpdate; + } + } +}
\ No newline at end of file |