Application: let AIR handle checking for all windows closed with its own autoExit behavior

This commit is contained in:
Josh Tynjala
2023-04-10 10:40:25 -07:00
parent 780ec7e837
commit 48dc64373b

View File

@@ -555,12 +555,15 @@ class Application extends Module
@:noCompletion private function __checkForAllWindowsClosed():Void @:noCompletion private function __checkForAllWindowsClosed():Void
{ {
// air handles this automatically with NativeApplication.autoExit
#if !air
if (__windows.length == 0) if (__windows.length == 0)
{ {
#if !lime_doc_gen #if !lime_doc_gen
System.exit(0); System.exit(0);
#end #end
} }
#end
} }
@:noCompletion private function __onGamepadConnect(gamepad:Gamepad):Void @:noCompletion private function __onGamepadConnect(gamepad:Gamepad):Void