Browse Source

BeefCon fix

Brian Fiete 1 year ago
parent
commit
0880839252
2 changed files with 3 additions and 0 deletions
  1. 1 0
      BeefTools/BeefCon/BeefSpace.toml
  2. 2 0
      IDE/src/util/ConsoleProvider.bf

+ 1 - 0
BeefTools/BeefCon/BeefSpace.toml

@@ -3,6 +3,7 @@ Projects = {BeefCon = {Path = "."}, Beefy2D = "*"}
 
 
 [Workspace]
 [Workspace]
 StartupProject = "BeefCon"
 StartupProject = "BeefCon"
+PreprocessorMacros = ["BEEFCON"]
 
 
 [Configs.Release.Win64]
 [Configs.Release.Win64]
 BfOptimizationLevel = "OgPlus"
 BfOptimizationLevel = "OgPlus"

+ 2 - 0
IDE/src/util/ConsoleProvider.bf

@@ -579,7 +579,9 @@ class WinNativeConsoleProvider : ConsoleProvider
 		if ((mHideNativeConsole) && (window != default))
 		if ((mHideNativeConsole) && (window != default))
 		{
 		{
 			Windows.SetWindowPos(window, default, 0, 0, 0, 0, 0x290 /* SWP_NOACTIVATE | SWP_NOREPOSITION | SWP_HIDEWINDOW */);
 			Windows.SetWindowPos(window, default, 0, 0, 0, 0, 0x290 /* SWP_NOACTIVATE | SWP_NOREPOSITION | SWP_HIDEWINDOW */);
+#if !BEEFCON
 			gApp.mMainWindow.SetForeground();
 			gApp.mMainWindow.SetForeground();
+#endif
 		}
 		}
 
 
 		//ResizeComponents();
 		//ResizeComponents();