Application: let AIR handle checking for all windows closed with its own autoExit behavior
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user