Nicolas Cannasse hace 5 años
padre
commit
3bc9e002c3
Se han modificado 4 ficheros con 14 adiciones y 4 borrados
  1. 3 0
      bin/cdb.css
  2. 4 0
      bin/cdb.less
  3. 3 3
      hide/Ide.hx
  4. 4 1
      hide/view/CdbCustomTypes.hx

+ 3 - 0
bin/cdb.css

@@ -1,6 +1,9 @@
 .cdb-view > .hide-tabs > .tab > ::-webkit-scrollbar {
   width: 12px;
 }
+.cdb-view .cdb {
+  margin-bottom: 350px;
+}
 .cdb {
   background-color: black;
 }

+ 4 - 0
bin/cdb.less

@@ -2,6 +2,10 @@
 	width: 12px;
 }
 
+.cdb-view .cdb {
+	margin-bottom: 350px;
+}
+
 .cdb {
 
 	background-color : black;

+ 3 - 3
hide/Ide.hx

@@ -21,6 +21,7 @@ class Ide {
 	public var fileWatcher : hide.tools.FileWatcher;
 	public var typesCache : hide.tools.TypesCache;
 	public var isCDB = false;
+	public var isDebugger = false;
 
 	var databaseFile : String;
 	var databaseDiff : String;
@@ -51,13 +52,12 @@ class Ide {
 	var subView : { component : String, state : Dynamic, events : {} };
 	var scripts : Map<String,Array<Void->Void>> = new Map();
 	var hasReloaded = false;
-	var hasDebugger = false;
 
 	static var firstInit = true;
 
 	function new() {
 		isCDB = Sys.getEnv("HIDE_START_CDB") == "1" || nw.App.manifest.name == "CDB";
-		hasDebugger = Sys.getEnv("HIDE_DEBUG") == "1";
+		isDebugger = Sys.getEnv("HIDE_DEBUG") == "1";
 		function wait() {
 			if( monaco.Editor == null ) {
 				haxe.Timer.delay(wait, 10);
@@ -130,7 +130,7 @@ class Ide {
 		window.on('resize', function() haxe.Timer.delay(onWindowChange,100));
 		window.on('close', function() {
 			if( hasReloaded ) return;
-			if( !hasDebugger )
+			if( !isDebugger )
 				for( v in views )
 					if( !v.onBeforeClose() )
 						return;

+ 4 - 1
hide/view/CdbCustomTypes.hx

@@ -45,11 +45,14 @@ class CdbCustomTypes extends hide.ui.View<{}> {
 			for( p in tpairs ) {
 				if( p.b == null )
 					base.getCustomTypes().remove(p.a);
-				else
+				else if( ide.isDebugger )
+					base.updateType(p.a, p.b);
+				else {
 					try base.updateType(p.a, p.b) catch( msg : String ) {
 						ide.error("Error while updating " + p.b.name + " : " + msg);
 						return;
 					}
+				}
 			}
 			base.sync();