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 ();

View File

@@ -12,7 +12,7 @@
<content>::APP_FILE::.swf</content>
<systemChrome>::if (WIN_BORDERLESS)::none::else::standard::end::</systemChrome>
<transparent>false</transparent>
<visible>::if (WIN_HIDDEN)::false::else::true::end::</visible>
<visible>::if (LIB_MUNIT)::false::else::::if (WIN_HIDDEN)::false::else::true::end::::end::</visible>
<minimizable>true</minimizable>
<maximizable>true</maximizable>
<resizable>::WIN_RESIZABLE::</resizable>