Skip to content

Commit

Permalink
Merge pull request #104 from BUTR/code-formatting/fix-codeformatting
Browse files Browse the repository at this point in the history
Automated PR to fix formatting errors
  • Loading branch information
Aragas authored Apr 30, 2024
2 parents d12342c + 3809e5e commit ec41915
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Bannerlord.LauncherManager.Localization;
using Bannerlord.LauncherManager.Localization;

using HarmonyLib;
using HarmonyLib.BUTR.Extensions;
Expand Down
10 changes: 5 additions & 5 deletions src/Bannerlord.LauncherEx/ViewModels/BUTRLauncherModuleVM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,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<BUTRLauncherModuleVM> select, Func<BUTRLauncherModuleVM, IEnumerable<string>> validate,

Check warning on line 128 in src/Bannerlord.LauncherEx/ViewModels/BUTRLauncherModuleVM.cs

View workflow job for this annotation

GitHub Actions / Build Bannerlord.BLSE.Shared (Win64_Shipping_Client)

Non-nullable property 'RecommendedVersion' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 128 in src/Bannerlord.LauncherEx/ViewModels/BUTRLauncherModuleVM.cs

View workflow job for this annotation

GitHub Actions / Build Bannerlord.BLSE.Shared (Win64_Shipping_Client)

Non-nullable property 'RecommendedVersion' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 128 in src/Bannerlord.LauncherEx/ViewModels/BUTRLauncherModuleVM.cs

View workflow job for this annotation

GitHub Actions / Build Bannerlord.BLSE.Shared (Win64_Shipping_Client)

Non-nullable property 'RecommendedVersion' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 128 in src/Bannerlord.LauncherEx/ViewModels/BUTRLauncherModuleVM.cs

View workflow job for this annotation

GitHub Actions / Build Bannerlord.BLSE.Shared (Win64_Shipping_Client)

Non-nullable property 'RecommendedVersion' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 128 in src/Bannerlord.LauncherEx/ViewModels/BUTRLauncherModuleVM.cs

View workflow job for this annotation

GitHub Actions / Build Bannerlord.BLSE.Shared (Win64_Shipping_Client)

Non-nullable property 'RecommendedVersion' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 128 in src/Bannerlord.LauncherEx/ViewModels/BUTRLauncherModuleVM.cs

View workflow job for this annotation

GitHub Actions / Build Bannerlord.BLSE.Shared (Win64_Shipping_Client)

Non-nullable property 'RecommendedVersion' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 128 in src/Bannerlord.LauncherEx/ViewModels/BUTRLauncherModuleVM.cs

View workflow job for this annotation

GitHub Actions / Build Bannerlord.BLSE.Shared (Win64_Shipping_Client)

Non-nullable property 'RecommendedVersion' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 128 in src/Bannerlord.LauncherEx/ViewModels/BUTRLauncherModuleVM.cs

View workflow job for this annotation

GitHub Actions / Build Bannerlord.BLSE.Shared (Gaming.Desktop.x64_Shipping_Client)

Non-nullable property 'RecommendedVersion' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 128 in src/Bannerlord.LauncherEx/ViewModels/BUTRLauncherModuleVM.cs

View workflow job for this annotation

GitHub Actions / Build Bannerlord.BLSE.Shared (Gaming.Desktop.x64_Shipping_Client)

Non-nullable property 'RecommendedVersion' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 128 in src/Bannerlord.LauncherEx/ViewModels/BUTRLauncherModuleVM.cs

View workflow job for this annotation

GitHub Actions / Build Bannerlord.BLSE.Shared (Gaming.Desktop.x64_Shipping_Client)

Non-nullable property 'RecommendedVersion' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 128 in src/Bannerlord.LauncherEx/ViewModels/BUTRLauncherModuleVM.cs

View workflow job for this annotation

GitHub Actions / Build Bannerlord.BLSE.Shared (Gaming.Desktop.x64_Shipping_Client)

Non-nullable property 'RecommendedVersion' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 128 in src/Bannerlord.LauncherEx/ViewModels/BUTRLauncherModuleVM.cs

View workflow job for this annotation

GitHub Actions / Build Bannerlord.BLSE.Shared (Gaming.Desktop.x64_Shipping_Client)

Non-nullable property 'RecommendedVersion' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 128 in src/Bannerlord.LauncherEx/ViewModels/BUTRLauncherModuleVM.cs

View workflow job for this annotation

GitHub Actions / Build Bannerlord.BLSE.Shared (Gaming.Desktop.x64_Shipping_Client)

Non-nullable property 'RecommendedVersion' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 128 in src/Bannerlord.LauncherEx/ViewModels/BUTRLauncherModuleVM.cs

View workflow job for this annotation

GitHub Actions / Build Bannerlord.BLSE.Shared (Gaming.Desktop.x64_Shipping_Client)

Non-nullable property 'RecommendedVersion' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Func<ModuleInfoExtendedWithMetadata, ICollection<ModuleProviderType>> getPossibleProviders)
{
Expand Down Expand Up @@ -216,7 +216,7 @@ public void SetUpdateInfo(double compatibilityScore, double? recommendedCompatib
.SetTextVariable("CURRENTVERSION", VersionText)
.SetTextVariable("RECOMMENDEDVERSION", RecommendedVersion)
.SetTextVariable("GAMEVERSION", ApplicationVersionHelper.GameVersionStr()).ToString());

OnPropertyChanged(nameof(IsUpdateHintHigh));
OnPropertyChanged(nameof(IsUpdateHintMedium));
OnPropertyChanged(nameof(IsUpdateHintLow));
Expand All @@ -228,7 +228,7 @@ public void RemoveUpdateInfo()
CompatibilityScore = 0d;
RecommendedVersion = string.Empty;
UpdateHint = null;

OnPropertyChanged(nameof(IsUpdateHintHigh));
OnPropertyChanged(nameof(IsUpdateHintMedium));
OnPropertyChanged(nameof(IsUpdateHintLow));
Expand Down

0 comments on commit ec41915

Please sign in to comment.