Ver Fonte

Fix blank command prompts spawning

prevent certain mono actions from displaying empty command prompts.

(cherry picked from commit d606a8ededaa9cf8edfa09b4aeaeb92167a48207)
Julian Mills há 3 anos atrás
pai
commit
99e509a5d2

+ 1 - 0
modules/mono/editor/GodotTools/GodotTools/Build/BuildSystem.cs

@@ -63,6 +63,7 @@ namespace GodotTools.Build
             startInfo.RedirectStandardOutput = true;
             startInfo.RedirectStandardError = true;
             startInfo.UseShellExecute = false;
+            startInfo.CreateNoWindow = true;
 
             if (UsingMonoMsBuildOnWindows)
             {

+ 2 - 1
modules/mono/editor/GodotTools/GodotTools/Utils/OS.cs

@@ -174,7 +174,8 @@ namespace GodotTools.Utils
             {
                 RedirectStandardOutput = true,
                 RedirectStandardError = true,
-                UseShellExecute = false
+                UseShellExecute = false,
+                CreateNoWindow = true
             };
 
             using (Process process = Process.Start(startInfo))