Skip to content

Commit

Permalink
Use latest compatible instead of latest available for Install checkboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Aug 8, 2024
1 parent b8cf1e8 commit 9ac52ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions GUI/Controls/ManageMods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ public void MarkAllUpdates()
{
if (!Main.Instance.LabelsHeld(gmod.Identifier))
{
gmod.SelectedMod = gmod.LatestAvailableMod;
gmod.SelectedMod = gmod.LatestCompatibleMod;
}
}
}
Expand Down Expand Up @@ -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":
Expand All @@ -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,
Expand Down

0 comments on commit 9ac52ad

Please sign in to comment.