aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Ava/UI/Models/TitleUpdateModel.cs
diff options
context:
space:
mode:
authorIsaac Marovitz <42140194+IsaacMarovitz@users.noreply.github.com>2023-01-15 06:11:52 -0500
committerGitHub <noreply@github.com>2023-01-15 11:11:52 +0000
commit719dc97bbd321e98083f47267feb01db769e5fa6 (patch)
treeba249fdf3b41bb5636f183cdcb4134ef1703049c /Ryujinx.Ava/UI/Models/TitleUpdateModel.cs
parent41bba5310a5324f54fa5c0200aff2bf697ced000 (diff)
Ava UI: `TitleUpdateWindow` Refactor (#4276)
* Start Refactor * Dialogue opens * Changes * Switch to ListBox * Fix bugs and stuff * Fix spacing * Implement OpenLocation * Change icon * Color * Color * Remove background * Make no update the same height * Fix height and smooth scroll * Height * Fix update selection * Make window smaller * Add back remove all button * Make selection more obvious * Hide selection bar on SaveManager * Fix autoscroll * Fix no update not staying selected * Better file opener * Fix * Revert that * Update Ryujinx.Ava/UI/ViewModels/TitleUpdateViewModel.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Log warning * Update Ryujinx.Ava/UI/ViewModels/TitleUpdateViewModel.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> Co-authored-by: Ac_K <Acoustik666@gmail.com>
Diffstat (limited to 'Ryujinx.Ava/UI/Models/TitleUpdateModel.cs')
-rw-r--r--Ryujinx.Ava/UI/Models/TitleUpdateModel.cs12
1 files changed, 3 insertions, 9 deletions
diff --git a/Ryujinx.Ava/UI/Models/TitleUpdateModel.cs b/Ryujinx.Ava/UI/Models/TitleUpdateModel.cs
index c3ba6230..c57b3a26 100644
--- a/Ryujinx.Ava/UI/Models/TitleUpdateModel.cs
+++ b/Ryujinx.Ava/UI/Models/TitleUpdateModel.cs
@@ -3,23 +3,17 @@ using Ryujinx.Ava.Common.Locale;
namespace Ryujinx.Ava.UI.Models
{
- internal class TitleUpdateModel
+ public 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 string Label => string.Format(LocaleManager.Instance[LocaleKeys.TitleUpdateVersionLabel], Control.DisplayVersionString.ToString());
- public TitleUpdateModel(ApplicationControlProperty control, string path, bool isNoUpdate = false)
+ public TitleUpdateModel(ApplicationControlProperty control, string path)
{
Control = control;
Path = path;
- IsNoUpdate = isNoUpdate;
}
}
} \ No newline at end of file