mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-04 20:46:29 +03:00
Fix UIWidget::notifyLayoutAttrChangeParent() when used during a transaction.
Fix UIWidget::setLayoutMargin* not correctly invalidating the parent layout. Fix a complete UI lock when trying to display a UIMessageBox after failed debugging in ecode.
This commit is contained in:
@@ -1325,15 +1325,17 @@ void DebuggerPlugin::onRegisterDocument( TextDocument* doc ) {
|
||||
if ( exitCode == 0 ) {
|
||||
runCurrentConfig();
|
||||
} else {
|
||||
auto msgBox =
|
||||
UIMessageBox::New( UIMessageBox::YES_NO,
|
||||
i18n( "build_failed_debug_anyways",
|
||||
"Building the project failed, do you want to "
|
||||
"debug the binary anyways?" ) );
|
||||
msgBox->setTitle( i18n( "build_failed", "Build Failed" ) );
|
||||
msgBox->setCloseShortcut( { KEY_ESCAPE, KEYMOD_NONE } );
|
||||
msgBox->on( Event::OnConfirm, [this]( auto ) { runCurrentConfig(); } );
|
||||
msgBox->showWhenReady();
|
||||
getPluginContext()->getUISceneNode()->runOnMainThread( [this] {
|
||||
auto msgBox = UIMessageBox::New(
|
||||
UIMessageBox::YES_NO,
|
||||
i18n( "build_failed_debug_anyways",
|
||||
"Building the project failed, do you want to "
|
||||
"debug the binary anyways?" ) );
|
||||
msgBox->setTitle( i18n( "build_failed", "Build Failed" ) );
|
||||
msgBox->setCloseShortcut( { KEY_ESCAPE, KEYMOD_NONE } );
|
||||
msgBox->on( Event::OnConfirm, [this]( auto ) { runCurrentConfig(); } );
|
||||
msgBox->showWhenReady();
|
||||
} );
|
||||
}
|
||||
} );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user