Hide console on Windows when launching actions

This commit is contained in:
Jon Evans
2025-01-06 18:13:05 -05:00
parent 77448f032b
commit 08f866fae1
+2 -1
View File
@@ -289,7 +289,8 @@ void API_PLUGIN_MANAGER::InvokeAction( const wxString& aIdentifier )
env.env[ wxS( "KICAD_API_TOKEN" ) ] = Pgm().GetApiServer().Token();
env.cwd = pluginFile.GetPath();
long p = wxExecute( const_cast<wchar_t**>( args.data() ), wxEXEC_ASYNC, nullptr, &env );
long p = wxExecute( const_cast<wchar_t**>( args.data() ), wxEXEC_ASYNC | wxEXEC_HIDE_CONSOLE,
nullptr, &env );
if( !p )
{