Update main.tscript.in

This commit is contained in:
Brian Roberts 2022-09-29 11:58:36 -05:00 committed by GitHub
parent 8343c096df
commit 4e9e478742
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,7 @@ if(isFunction("loadStartup"))
else
{
//If nothing else set a main menu, try to do so now
if(isObject(Canvas) || !isObject(Canvas.getContent()))
if(isObject(Canvas) && !isObject(Canvas.getContent()))
{
if (isObject( ProjectSettings.value("UI/mainMenuName") ))
Canvas.setContent( ProjectSettings.value("UI/mainMenuName") );
@ -54,4 +54,4 @@ else
if ( ($Server::Dedicated == false) && ($platform $= "windows") )
closeSplashWindow();
echo("Engine initialized...");
echo("Engine initialized...");