Add a new plugin system for the new API
This commit is contained in:
@@ -24,9 +24,11 @@
|
||||
#include "pcb_scripting_tool.h"
|
||||
|
||||
#include <action_plugin.h>
|
||||
#include <api/api_plugin_manager.h>
|
||||
#include <kiface_ids.h>
|
||||
#include <kiway.h>
|
||||
#include <macros.h>
|
||||
#include <pgm_base.h>
|
||||
#include <python_scripting.h>
|
||||
#include <tools/pcb_actions.h>
|
||||
|
||||
@@ -106,6 +108,9 @@ int SCRIPTING_TOOL::reloadPlugins( const TOOL_EVENT& aEvent )
|
||||
return -1;
|
||||
}
|
||||
|
||||
// TODO move this elsewhere when SWIG plugins are removed
|
||||
Pgm().GetPluginManager().ReloadPlugins();
|
||||
|
||||
if( !m_isFootprintEditor )
|
||||
{
|
||||
// Action plugins can be modified, therefore the plugins menu must be updated:
|
||||
|
||||
Reference in New Issue
Block a user