Running window calls in the main thread seems to fix dead-lock issues.

This commit is contained in:
Martín Lucas Golini
2024-11-17 02:34:05 -03:00
parent 103ec3a894
commit 6d2bcc8dd6
2 changed files with 10 additions and 10 deletions

View File

@@ -254,8 +254,10 @@ void StatusBuildOutputController::runBuild( const std::string& buildName,
updateBuildButton();
if ( !mApp->getWindow()->hasFocus() )
mApp->getWindow()->flash( WindowFlashOperation::UntilFocused );
if ( !mApp->getWindow()->hasFocus() ) {
mApp->getUISceneNode()->runOnMainThread(
[this] { mApp->getWindow()->flash( WindowFlashOperation::UntilFocused ); } );
}
if ( doneFn )
doneFn( exitCode );