From 3809e5e641b9b098be7060d1f278ffb3de0215a5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 30 Apr 2024 00:08:39 +0000 Subject: [PATCH] Automated dotnet-format update --- .../ResourceManagers/FontFactoryManager.cs | 2 +- .../ViewModels/BUTRLauncherModuleVM.cs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Bannerlord.LauncherEx/ResourceManagers/FontFactoryManager.cs b/src/Bannerlord.LauncherEx/ResourceManagers/FontFactoryManager.cs index 9f19532..1b8ccd2 100644 --- a/src/Bannerlord.LauncherEx/ResourceManagers/FontFactoryManager.cs +++ b/src/Bannerlord.LauncherEx/ResourceManagers/FontFactoryManager.cs @@ -1,4 +1,4 @@ -using Bannerlord.LauncherManager.Localization; +using Bannerlord.LauncherManager.Localization; using HarmonyLib; using HarmonyLib.BUTR.Extensions; diff --git a/src/Bannerlord.LauncherEx/ViewModels/BUTRLauncherModuleVM.cs b/src/Bannerlord.LauncherEx/ViewModels/BUTRLauncherModuleVM.cs index 53b923b..24d6cad 100644 --- a/src/Bannerlord.LauncherEx/ViewModels/BUTRLauncherModuleVM.cs +++ b/src/Bannerlord.LauncherEx/ViewModels/BUTRLauncherModuleVM.cs @@ -121,13 +121,13 @@ public string IssuesText [BUTRDataSourceProperty] public bool IsUpdateHintHigh => UpdateInfoAvailable && CompatibilityScore >= 75d; - + [BUTRDataSourceProperty] public bool IsUpdateHintMedium => UpdateInfoAvailable && CompatibilityScore is >= 50d and < 75d; - + [BUTRDataSourceProperty] public bool IsUpdateHintLow => UpdateInfoAvailable && CompatibilityScore is >= 0d and < 50d; - + public BUTRLauncherModuleVM(ModuleInfoExtendedWithMetadata moduleInfoExtended, Action select, Func> validate, Func> getPossibleProviders) { @@ -217,7 +217,7 @@ public void SetUpdateInfo(double compatibilityScore, string? recommendedVersion) .SetTextVariable("CURRENTVERSION", VersionText) .SetTextVariable("RECOMMENDEDVERSION", RecommendedVersion) .SetTextVariable("GAMEVERSION", ApplicationVersionHelper.GameVersionStr()).ToString()); - + OnPropertyChanged(nameof(IsUpdateHintHigh)); OnPropertyChanged(nameof(IsUpdateHintMedium)); OnPropertyChanged(nameof(IsUpdateHintLow)); @@ -229,7 +229,7 @@ public void RemoveUpdateInfo() CompatibilityScore = 0d; RecommendedVersion = string.Empty; UpdateHint = null; - + OnPropertyChanged(nameof(IsUpdateHintHigh)); OnPropertyChanged(nameof(IsUpdateHintMedium)); OnPropertyChanged(nameof(IsUpdateHintLow));