More specific component error messaging and modes for native UI to prevent blocking dialog in some applications

This commit is contained in:
mgwynn
2021-06-23 21:05:17 -04:00
parent e357dea06c
commit fb3940fa31
16 changed files with 186 additions and 37 deletions
@@ -91,10 +91,12 @@ namespace EditorInternal
void EditorToolsApplication::StartCommon(AZ::Entity* systemEntity)
{
AzToolsFramework::ToolsApplication::StartCommon(systemEntity);
m_StartupAborted = m_moduleManager->m_quitRequested;
if (systemEntity->GetState() != AZ::Entity::State::Active)
{
m_StartupAborted = true;
return;
}
}
@@ -106,6 +108,7 @@ namespace EditorInternal
AzToolsFramework::ToolsApplication::Start({}, params);
if (IsStartupAborted() || !m_systemEntity)
{
AzToolsFramework::ToolsApplication::Stop();
return false;
}
return true;