From 35fb409e85ef07b8e1c3a582cdc6615e6da71429 Mon Sep 17 00:00:00 2001 From: Isaac Marovitz <42140194+IsaacMarovitz@users.noreply.github.com> Date: Fri, 26 Jan 2024 01:02:28 +0000 Subject: Ava UI: Mod Manager (#4390) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Let’s start again * Read folders and such * Remove Open Mod Folder menu items * Fix folder opening, Selecting/deselecting * She works * Fix GTK * AddMod * Delete * Fix duplicate entries * Fix file check * Avalonia 11 * Style fixes * Final style fixes * Might be too general * Remove unnecessary using * Enable new mods by default * More cleanup * Fix saving metadata * Dont deseralise ModMetadata several times * Avalonia I hate you * Confirmation dialgoues * Allow selecting multiple folders * Add back secondary folder * Search both paths * Fix formatting * Apply suggestions from code review Co-authored-by: Ac_K * Rename Title to Application * Generic locale key * Apply suggestions from code review Co-authored-by: Ac_K * Locale Updates * GDK Feedback * Fix --------- Co-authored-by: Ac_K --- src/Ryujinx.Ava/UI/Models/ModModel.cs | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/Ryujinx.Ava/UI/Models/ModModel.cs (limited to 'src/Ryujinx.Ava/UI/Models/ModModel.cs') diff --git a/src/Ryujinx.Ava/UI/Models/ModModel.cs b/src/Ryujinx.Ava/UI/Models/ModModel.cs new file mode 100644 index 00000000..f68e1593 --- /dev/null +++ b/src/Ryujinx.Ava/UI/Models/ModModel.cs @@ -0,0 +1,30 @@ +using Ryujinx.Ava.UI.ViewModels; +using System.IO; + +namespace Ryujinx.Ava.UI.Models +{ + public class ModModel : BaseModel + { + private bool _enabled; + + public bool Enabled + { + get => _enabled; + set + { + _enabled = value; + OnPropertyChanged(); + } + } + + public string Path { get; } + public string Name { get; } + + public ModModel(string path, string name, bool enabled) + { + Path = path; + Name = name; + Enabled = enabled; + } + } +} -- cgit v1.2.3