MCPcopy Create free account
hub / github.com/SpartanJ/eepp / updateRunButton

Method updateRunButton

src/tools/ecode/statusappoutputcontroller.cpp:268–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268void StatusAppOutputController::updateRunButton() {
269 UIPushButton* runButton = getRunButton();
270 if ( runButton ) {
271 runButton->runOnMainThread(
272 [this, runButton] { runButton->setText( mContext->i18n( "run", "Run" ) ); } );
273 }
274
275 UIPushButton* buildAndRunButton = getBuildAndRunButton();
276
277 if ( buildAndRunButton )
278 buildAndRunButton->setEnabled( true );
279
280 mRunButton->setEnabled( true );
281 mStopButton->setEnabled( false );
282}
283
284} // namespace ecode

Callers

nothing calls this directly

Calls 4

runOnMainThreadMethod · 0.80
setTextMethod · 0.45
i18nMethod · 0.45
setEnabledMethod · 0.45

Tested by

no test coverage detected