![]() # Objective I have been trying to check for the existing of some plugins via `App::is_plugin_added` to conditionally run some behaviour in the `Plugin::finish` part of my plugin, before realizing that the plugin registry is actually not available during this step. This is because the `App::is_plugin_added` using the plugin registry to check for previous registration. ## Solution - Switch the `App::is_plugin_added` to use the list of plugin names to check for previous registrations - Add a unit test showcasing that `App::is_plugin_added` works during `Plugin::finish` |
||
---|---|---|
.. | ||
app.rs | ||
lib.rs | ||
main_schedule.rs | ||
panic_handler.rs | ||
plugin_group.rs | ||
plugin.rs | ||
schedule_runner.rs | ||
sub_app.rs |