From 01eebd0b9d2d99a69f4661c7ff63d16ad1b9ac94 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 2 Dec 2021 20:50:09 +0100 Subject: [PATCH] Do not call callLoadPlugins() every time a SCRIPTING_TOOL is created. (i.e. from board editor and from fp editor) Once is enough. Once plugins are loaded, calling LoadPlugins() from fpeditor disable plugins in board editor Fixes #9846 https://gitlab.com/kicad/code/kicad/issues/9846 --- pcbnew/python/scripting/pcb_scripting_tool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/python/scripting/pcb_scripting_tool.cpp b/pcbnew/python/scripting/pcb_scripting_tool.cpp index 1d1d22820a..1223ef5e79 100644 --- a/pcbnew/python/scripting/pcb_scripting_tool.cpp +++ b/pcbnew/python/scripting/pcb_scripting_tool.cpp @@ -67,9 +67,9 @@ bool SCRIPTING_TOOL::Init() PyObject* sys_mod = PyImport_GetModuleDict(); PyDict_SetItemString( sys_mod, "_pcbnew", mod ); Py_DECREF( mod ); - } - callLoadPlugins(); + callLoadPlugins(); + } return true; }