| 1077 | } |
| 1078 | |
| 1079 | void UIBuildSettings::runSelect( Uint32 index ) { |
| 1080 | UIWidget* cont = find<UIWidget>( "run_cont" ); |
| 1081 | auto bs = cont->findByClass<UIBuildStep>( String::toString( 0 ) ); |
| 1082 | if ( index < mBuild.mRun.size() ) { |
| 1083 | bs->updateStep( 0, mBuild.mRun[index].get() ); |
| 1084 | } else { |
| 1085 | if ( mBuild.mRun.empty() ) { |
| 1086 | mBuild.mRun.push_back( std::make_unique<ProjectBuildStep>() ); |
| 1087 | mBuild.mRun.back()->name = i18n( "custom_executable", "Custom Executable" ); |
| 1088 | } |
| 1089 | bs->updateStep( 0, mBuild.mRun[0].get() ); |
| 1090 | } |
| 1091 | } |
| 1092 | |
| 1093 | void UIBuildSettings::runRemove( bool all, UIDropDownList* runList, |
| 1094 | UIDropDownList* panelRunListDDL ) { |