Browse Source

fix crash on launch when layouts is not set

trethaller 5 years ago
parent
commit
5078a2862e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      hide/Ide.hx

+ 2 - 0
hide/Ide.hx

@@ -881,6 +881,8 @@ class Ide {
 		// layout
 		var layouts = menu.find(".layout .content");
 		layouts.html("");
+		if(projectConfig.layouts == null)
+			projectConfig.layouts = [];
 		for( l in projectConfig.layouts ) {
 			if( l.name == "Default" ) continue;
 			new Element("<menu>").attr("label",l.name).addClass(l.name).appendTo(layouts).click(function(_) {