Skip to content

Commit

Permalink
Make X skip buttons in changelog work better for modpacks
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Aug 5, 2024
1 parent 1327aee commit f2b71a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions GUI/Controls/Changeset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ private void ChangesGrid_CellClick(object sender, DataGridViewCellEventArgs e)
&& row.Change.IsRemovable
&& row.ConfirmUncheck())
{
(ChangesGrid.DataSource as BindingList<ChangesetRow>)?.Remove(row);
changeset.Remove(row.Change);
OnRemoveItem?.Invoke(row.Change);
}
}
Expand Down
4 changes: 3 additions & 1 deletion GUI/Controls/ManageMods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,9 @@ private void guiModule_PropertyChanged(object sender, PropertyChangedEventArgs e

public void RemoveChangesetItem(ModChange change)
{
if (change.IsRemovable
if (currentChangeSet != null
&& currentChangeSet.Contains(change)
&& change.IsRemovable
&& mainModList.full_list_of_mod_rows.TryGetValue(change.Mod.identifier,
out DataGridViewRow row)
&& row.Tag is GUIMod guiMod)
Expand Down

0 comments on commit f2b71a7

Please sign in to comment.