Browse Source

Fix error on load on clear profile

trethaller 6 years ago
parent
commit
9182c82557
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hide/Ide.hx

+ 1 - 1
hide/Ide.hx

@@ -903,11 +903,11 @@ class Ide {
 			target = bestTarget.parent.parent;
 		else {
 			target = layout.root.contentItems[0];
-			target.config.isClosable = false;
 			if( target == null ) {
 				layout.root.addChild({ type : Row, isClosable: false });
 				target = layout.root.contentItems[0];
 			}
+			target.config.isClosable = false;
 		}
 		if( onCreate != null )
 			target.on("componentCreated", function(c) {