Skip to content

Commit

Permalink
Enable panel build type list after adding a build type, and disable i…
Browse files Browse the repository at this point in the history
…t if no build types are left after removing one.
  • Loading branch information
SpartanJ committed Feb 18, 2025
1 parent d179e4d commit 01f6a4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tools/ecode/uibuildsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ UIBuildSettings::UIBuildSettings(
if ( panelBuildTypeDDL ) {
panelBuildTypeDDL->getListBox()->addListBoxItem( buildType );
panelBuildTypeDDL->getListBox()->setSelected( buildType );
panelBuildTypeDDL->setEnabled( true );
}
msgBox->closeWindow();
} );
Expand All @@ -655,6 +656,8 @@ UIBuildSettings::UIBuildSettings(
buildTypeDropDown->getListBox()->removeListBoxItem( txt );
if ( panelBuildTypeDDL ) {
panelBuildTypeDDL->getListBox()->removeListBoxItem( txt );
if ( panelBuildTypeDDL->getListBox()->isEmpty() )
panelBuildTypeDDL->setEnabled( false );
}
msgBox->closeWindow();
} );
Expand Down

0 comments on commit 01f6a4f

Please sign in to comment.