mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-29 09:36:29 +03:00
Enable panel build type list after adding a build type, and disable it if no build types are left after removing one.
This commit is contained in:
@@ -634,6 +634,7 @@ UIBuildSettings::UIBuildSettings(
|
||||
if ( panelBuildTypeDDL ) {
|
||||
panelBuildTypeDDL->getListBox()->addListBoxItem( buildType );
|
||||
panelBuildTypeDDL->getListBox()->setSelected( buildType );
|
||||
panelBuildTypeDDL->setEnabled( true );
|
||||
}
|
||||
msgBox->closeWindow();
|
||||
} );
|
||||
@@ -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();
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user