Skip to content

Commit

Permalink
Keep row selected when changing labels
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Sep 29, 2024
1 parent 3fb96ef commit b883868
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions GUI/Model/ModList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,13 @@ private void CheckRowUpgradeable(GameInstance inst,
full_list_of_mod_rows[ident] =
MakeRow(gmod, ChangeSet, inst.Name, inst.game);
var rowIndex = row.Index;
var selected = row.Selected;
rows.Remove(row);
rows.Insert(rowIndex, newRow);
if (selected)
{
rows[rowIndex].Selected = true;
}
}
}
}
Expand Down

0 comments on commit b883868

Please sign in to comment.