Explorar o código

Deferred ShowOuput, fixed double-output window

Brian Fiete %!s(int64=5) %!d(string=hai) anos
pai
achega
07df54ddba
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  1. 8 1
      IDE/src/IDEApp.bf

+ 8 - 1
IDE/src/IDEApp.bf

@@ -168,6 +168,7 @@ namespace IDE
         public Image mTransparencyGridImage ~ delete _;
         public Image mSquiggleImage ~ delete _;
         public Image mCircleImage ~ delete _;
+		public bool mWantShowOutput;
 
         public OutputPanel mOutputPanel;
         public ImmediatePanel mImmediatePanel;
@@ -6692,7 +6693,7 @@ namespace IDE
 
 		public void OutputErrorLine(String format, params Object[] args)
 		{
-			ShowOutput();
+			mWantShowOutput = true;
 			var errStr = scope String();
 			errStr.Append("ERROR: ", format);
 			OutputLineSmart(errStr, params args);
@@ -12402,6 +12403,12 @@ namespace IDE
 
 			}*/
 
+			if (mWantShowOutput)
+			{
+				ShowOutput();
+				mWantShowOutput = false;
+			}
+
 			if (mDbgFastUpdate)
 			{
 				RefreshRate = 240;