Catch plugin actions loaded during startup

This commit is contained in:
Andrew
2026-07-13 16:00:25 +08:00
parent 88e3e59c64
commit 5a3e4abb18
3 changed files with 12 additions and 13 deletions

View File

@@ -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())