Hide AIR windows by default when running munit

This commit is contained in:
Joshua Granick
2018-11-01 16:29:52 -07:00
parent 6af853b002
commit 1b8df4203b
2 changed files with 6 additions and 2 deletions

View File

@@ -108,6 +108,10 @@ class AIRWindow extends FlashWindow {
nativeWindow = Lib.current.stage.nativeWindow;
#if munit
hidden = true;
#end
} else {
var options = new NativeWindowInitOptions ();
@@ -182,7 +186,7 @@ class AIRWindow extends FlashWindow {
public override function focus ():Void {
if (nativeWindow != null) {
if (nativeWindow != null && nativeWindow.visible) {
nativeWindow.activate ();