Fixed bugs in Run Application.

This commit is contained in:
Martín Lucas Golini
2024-08-06 00:16:17 -03:00
parent 32aef45a1a
commit 1046ee6237
2 changed files with 12 additions and 6 deletions

View File

@@ -83,8 +83,10 @@ void StatusAppOutputController::run( const ProjectBuildCommand& runData,
const auto updateRunButton = [this]() {
UIPushButton* buildButton = getRunButton( mApp );
buildButton->runOnMainThread(
[this, buildButton] { buildButton->setText( mApp->i18n( "run", "Run" ) ); } );
if ( buildButton ) {
buildButton->runOnMainThread(
[this, buildButton] { buildButton->setText( mApp->i18n( "run", "Run" ) ); } );
}
mRunButton->setEnabled( true );
mStopButton->setEnabled( false );
};