Minor fixes and improvements.

This commit is contained in:
Martín Lucas Golini
2023-09-05 19:51:36 -03:00
parent 13e2f20dd8
commit 3231dabbee
7 changed files with 48 additions and 28 deletions

View File

@@ -205,13 +205,16 @@ void StatusBuildOutputController::runBuild( const std::string& buildName,
const auto updateBuildButton = [this, enableCleanButton]() {
UIPushButton* buildButton = getBuildButton( mApp );
if ( buildButton )
buildButton->setText( mApp->i18n( "build", "Build" ) );
if ( buildButton ) {
buildButton->runOnMainThread(
[this, buildButton] { buildButton->setText( mApp->i18n( "build", "Build" ) ); } );
}
if ( enableCleanButton ) {
UIPushButton* cleanButton = getCleanButton( mApp );
if ( cleanButton )
cleanButton->setEnabled( true );
if ( cleanButton ) {
cleanButton->runOnMainThread( [cleanButton] { cleanButton->setEnabled( true ); } );
}
}
};