From 2c8fa46a6548bdc4257354751a1d95f8a5590fd6 Mon Sep 17 00:00:00 2001 From: lxymahatma Date: Tue, 23 Jul 2024 14:07:32 +0900 Subject: [PATCH] some changes, bump version --- Styles/ExtendControls/DifficultyFilter.axaml.cs | 10 ---------- UI/BuildInfo.cs | 2 +- UI/GlobalUsing.cs | 2 ++ UI/Models/Mod.cs | 8 ++++---- 4 files changed, 7 insertions(+), 15 deletions(-) diff --git a/Styles/ExtendControls/DifficultyFilter.axaml.cs b/Styles/ExtendControls/DifficultyFilter.axaml.cs index 826acebb..0d0e9742 100644 --- a/Styles/ExtendControls/DifficultyFilter.axaml.cs +++ b/Styles/ExtendControls/DifficultyFilter.axaml.cs @@ -2,16 +2,6 @@ namespace MuseDashModToolsUI.Styles.ExtendControls; public class DifficultyFilter : MenuItem { - public static readonly StyledProperty IsCheckedProperty = - AvaloniaProperty.Register(nameof(IsChecked), false, - defaultBindingMode: BindingMode.TwoWay); - - public bool? IsChecked - { - get => GetValue(IsCheckedProperty); - set => SetValue(IsCheckedProperty, value); - } - protected override void OnPointerPressed(PointerPressedEventArgs e) { base.OnPointerPressed(e); diff --git a/UI/BuildInfo.cs b/UI/BuildInfo.cs index eb308094..8133b8a4 100644 --- a/UI/BuildInfo.cs +++ b/UI/BuildInfo.cs @@ -6,5 +6,5 @@ public static class BuildInfo public const string CopyRight = "Copyright © 2023 MDModsDev"; public const string Description = "A tool for Muse Dash modding"; public const string Name = "MuseDashModTools"; - public const string Version = "1.3.0"; + public const string Version = "1.3.1"; } \ No newline at end of file diff --git a/UI/GlobalUsing.cs b/UI/GlobalUsing.cs index 14f7cd3f..fd5cfd24 100644 --- a/UI/GlobalUsing.cs +++ b/UI/GlobalUsing.cs @@ -10,12 +10,14 @@ global using MuseDashModToolsUI.Services; global using MuseDashModToolsUI.Utils; global using System; +global using System.IO; global using System.Collections.Generic; global using System.Linq; global using System.Threading; global using System.Threading.Tasks; global using System.Runtime.InteropServices; global using System.Runtime.Versioning; +global using System.Net.Http; global using Serilog; global using static MuseDashModToolsUI.Localization.MsgBox.Resources_MsgBox; global using static MuseDashModToolsUI.Localization.Resources.Resources; diff --git a/UI/Models/Mod.cs b/UI/Models/Mod.cs index 3574233e..e11c6f59 100644 --- a/UI/Models/Mod.cs +++ b/UI/Models/Mod.cs @@ -11,11 +11,11 @@ public partial class Mod : ObservableObject public string DownloadLink { get; set; } = string.Empty; public string HomePage { get; set; } = string.Empty; public string ConfigFile { get; set; } = string.Empty; - public string[]? GameVersion { get; set; } + public string[] GameVersion { get; set; } = []; public string Description { get; set; } = string.Empty; - public List DependentMods { get; set; } = new(); - public List DependentLibs { get; set; } = new(); - public List IncompatibleMods { get; set; } = new(); + public List DependentMods { get; set; } = []; + public List DependentLibs { get; set; } = []; + public List IncompatibleMods { get; set; } = []; public string SHA256 { get; set; } = string.Empty; [JsonIgnore] public string? LocalVersion { get; set; } [JsonIgnore] public UpdateState State { get; set; }