Skip to content

Commit

Permalink
fix for catalogue dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikaLos committed Mar 11, 2024
1 parent d60af88 commit cf08bbe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion OasysGH/Components/CreateOasysProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ public override void SetSelected(int i, int j) {

if (i == 1) {
_catalogueIndex = _catalogueNumbers[j];
_typeIndex = -1;
_sectionIndex = 0;

SetTypeList();
List<int> types = GetTypeList();
SetSectionNames(types);
ChangeSelectedItems(j);
Expand Down Expand Up @@ -1305,6 +1308,7 @@ protected override void UpdateUIFromSelectedItems() {
_typeIndex = oldTypeIndex;
_sectionIndex = oldSectionIndex;

SetTypeList();
List<int> types = GetTypeList();
SetSectionNames(types);

Expand Down Expand Up @@ -1408,7 +1412,6 @@ private void UpdateSelectedItemsForNonCatalogue(bool updateCat) {

SetTypeList();
SetSectionNames(_typeNumbers);
CreateSectionList();
ChangeSelectedItems();

Mode1Clicked();
Expand Down

0 comments on commit cf08bbe

Please sign in to comment.