Don't scan for API plugins if server is disabled

This commit is contained in:
Jon Evans
2025-01-10 21:46:51 -05:00
parent eb4220bd29
commit 54e8233b36
3 changed files with 6 additions and 3 deletions
@@ -113,7 +113,8 @@ int SCRIPTING_TOOL::reloadPlugins( const TOOL_EVENT& aEvent )
#ifdef KICAD_IPC_API
// TODO move this elsewhere when SWIG plugins are removed
Pgm().GetPluginManager().ReloadPlugins();
if( Pgm().GetCommonSettings()->m_Api.enable_server )
Pgm().GetPluginManager().ReloadPlugins();
#endif
if( !m_isFootprintEditor )