Sfoglia il codice sorgente

fix cancel on open project

Nicolas Cannasse 5 anni fa
parent
commit
b22d8e255a
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      hide/Ide.hx

+ 1 - 0
hide/Ide.hx

@@ -806,6 +806,7 @@ class Ide {
 		}
 		menu.find(".project .open").click(function(_) {
 			chooseDirectory(function(dir) {
+				if( dir == null ) return;
 				if( StringTools.endsWith(dir,"/res") || StringTools.endsWith(dir,"\\res") )
 					dir = dir.substr(0,-4);
 				setProject(dir);