From 9ac52ad453ebf49582723a5390cabe3b7209a229 Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Thu, 8 Aug 2024 16:47:22 -0500 Subject: [PATCH] Use latest compatible instead of latest available for Install checkboxes --- GUI/Controls/ManageMods.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/GUI/Controls/ManageMods.cs b/GUI/Controls/ManageMods.cs index 586715084..38e6b3b4c 100644 --- a/GUI/Controls/ManageMods.cs +++ b/GUI/Controls/ManageMods.cs @@ -523,7 +523,7 @@ public void MarkAllUpdates() { if (!Main.Instance.LabelsHeld(gmod.Identifier)) { - gmod.SelectedMod = gmod.LatestAvailableMod; + gmod.SelectedMod = gmod.LatestCompatibleMod; } } } @@ -881,7 +881,7 @@ private void ModGrid_CellValueChanged(object sender, DataGridViewCellEventArgs e case "Installed": gmod.SelectedMod = nowChecked ? gmod.SelectedMod ?? gmod.InstalledMod?.Module - ?? gmod.LatestAvailableMod + ?? gmod.LatestCompatibleMod : null; break; case "UpdateCol": @@ -890,10 +890,10 @@ private void ModGrid_CellValueChanged(object sender, DataGridViewCellEventArgs e && (gmod.InstalledMod == null || gmod.InstalledMod.Module.version < gmod.SelectedMod.version) ? gmod.SelectedMod - : gmod.LatestAvailableMod + : gmod.LatestCompatibleMod : gmod.InstalledMod?.Module; - if (nowChecked && gmod.SelectedMod == gmod.LatestAvailableMod) + if (nowChecked && gmod.SelectedMod == gmod.LatestCompatibleMod) { // Reinstall, force update without change UpdateChangeSetAndConflicts(currentInstance,