bevy/crates/bevy_app/src
Charles Bournhonesque f73950767b
Update App:is_plugin_added to work inside Plugin::finish and Plugin::clean (#12761)
# 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`
2024-04-28 21:32:16 +00:00
..
app.rs Update App:is_plugin_added to work inside Plugin::finish and Plugin::clean (#12761) 2024-04-28 21:32:16 +00:00
lib.rs Make AppExit more specific about exit reason. (#13022) 2024-04-22 16:48:18 +00:00
main_schedule.rs Refactor App and SubApp internals for better separation (#9202) 2024-03-31 03:16:10 +00:00
panic_handler.rs Move PanicHandlerPlugin into bevy_app (#12640) 2024-03-29 02:04:56 +00:00
plugin_group.rs Added add_group to PluginGroupBuilder (#9530) 2024-02-25 21:23:28 +00:00
plugin.rs Refactor App and SubApp internals for better separation (#9202) 2024-03-31 03:16:10 +00:00
schedule_runner.rs Simplify runner app exit code. (#13074) 2024-04-23 20:42:00 +00:00
sub_app.rs Update App:is_plugin_added to work inside Plugin::finish and Plugin::clean (#12761) 2024-04-28 21:32:16 +00:00