mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-18 00:12:09 +00:00
Catch plugin actions loaded during startup
This commit is contained in:
@@ -91,15 +91,7 @@ void ScriptActionSource::start(ActionRegistry& sink)
|
||||
refresh_capability(capability, ActionChange::Removed);
|
||||
});
|
||||
|
||||
enumerate();
|
||||
}
|
||||
|
||||
void ScriptActionSource::enumerate()
|
||||
{
|
||||
assert(wxThread::IsMain());
|
||||
assert(m_sink != nullptr);
|
||||
|
||||
PluginLoader& loader = PluginManager::instance().get_loader();
|
||||
// enumerate
|
||||
std::unordered_map<std::string, std::string> source_names;
|
||||
for (const PluginDescriptor& desc : loader.get_all_loaded_plugin_descriptors())
|
||||
if (!desc.name.empty())
|
||||
|
||||
Reference in New Issue
Block a user