From 850d36130efb5571a63c14255554927333af971b Mon Sep 17 00:00:00 2001 From: carlitosan <82187351+carlitosan@users.noreply.github.com> Date: Tue, 30 Nov 2021 15:02:06 -0800 Subject: [PATCH] update error window message and add AP launch request Signed-off-by: carlitosan <82187351+carlitosan@users.noreply.github.com> --- .../Code/Editor/View/Windows/MainWindow.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Gems/ScriptCanvas/Code/Editor/View/Windows/MainWindow.cpp b/Gems/ScriptCanvas/Code/Editor/View/Windows/MainWindow.cpp index 778ad9d5b7..ee36fc4212 100644 --- a/Gems/ScriptCanvas/Code/Editor/View/Windows/MainWindow.cpp +++ b/Gems/ScriptCanvas/Code/Editor/View/Windows/MainWindow.cpp @@ -154,6 +154,7 @@ #include #include +#include namespace ScriptCanvasEditor { @@ -4305,9 +4306,14 @@ namespace ScriptCanvasEditor m_forceCloseInProgress = true; QMessageBox::critical(this, QString(), QObject::tr ("The ScriptCanvas Editor has encountered an external bug which prevents it from tracking the file state.

" - "Likely the Asset Processor has crashed. ScriptCanvas files may have saved successfully, but the O3DE Engine and Asset Processor should be restarted before continuing work.")); + "The ScriptCanvas files in the process of being saved may have saved successfully.

Closing this window will close " + "the ScriptCanvas Editor, and request a launch of the Asset Processor.
" + "Verify that the Asset Processor or is running before launching the ScriptCanvas Editor again.
" + "The status of the Asset Processor can be monitored from the O3DE Editor in the bottom-right corner of the status bar.")); + + AzFramework::AssetSystem::LaunchAssetProcessor(); AZ::SystemTickBus::Handler::BusDisconnect(); - qobject_cast(parent())->close(); + AzToolsFramework::CloseViewPane(LyViewPane::ScriptCanvas); } void MainWindow::OnCommandStarted(AZ::Crc32)