Adjusts the handling of the disconnect call to not utilize package overrides, but instead a callOnModules invoke like most other cross-module calls.

This allows the editor to issue a disconnect call properly again.
This commit is contained in:
JeffR 2025-04-22 18:20:12 -05:00
parent 28c8690d72
commit 7b7de1f10f
3 changed files with 14 additions and 38 deletions

View file

@ -23,4 +23,13 @@ function ToolsModule::onCreate(%this)
function ToolsModule::onDestroy(%this)
{
}
function ToolsModule::disconnect(%this)
{
if ( isObject( Editor ) && Editor.isEditorEnabled() )
{
EditorGui.saveAs = false; //whatever edits we were doing are irrelevent now
Editor.close(MainMenuGui);
}
}