Skip to content

Commit

Permalink
update parent combobox
Browse files Browse the repository at this point in the history
  • Loading branch information
cadon committed Sep 9, 2024
1 parent a524309 commit 5746df0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ARKBreedingStats/StatsOptions/StatsOptionsControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ private void TbOptionsName_Leave(object sender, EventArgs e)
StatsOptionsSettings.StatsOptionsDict.Add(newName, SelectedStatsOptions);
// update text in combobox
CbbOptions.Items[CbbOptions.SelectedIndex] = SelectedStatsOptions;
var cbbParentIndex = CbbParent.Items.IndexOf(SelectedStatsOptions);
if (cbbParentIndex >= 0)
CbbParent.Items[cbbParentIndex] = SelectedStatsOptions;
StatsOptionsSettings.ClearSpeciesCache();
}

Expand Down

0 comments on commit 5746df0

Please sign in to comment.