bevy/examples/app
Niklas Eicker 558859691e Fix return_after_run example (#6420)
# Objective

- Fixes  #6311
- Make it clearer what should be done in the example (close the Bevy app window)

## Solution

- Remove the second windowed Bevy App [since winit does not support this](https://github.com/rust-windowing/winit/blob/v0.27.4/src/event_loop.rs#L82-L83)
- Add title to the Bevy window asking the user to close it

This is more of a quick fix to have a working example. It would be nicer if we had a small real usecase for this functionality.
Another alternativ that I tried out: If we want to showcase a second Bevy app as it was before, we could still do this as long as one of them does not have a window. But I don't see how this is helpful in the context of the example, so I stuck with only one Bevy app and a simple print afterwards.
2022-10-31 16:35:20 +00:00
..
custom_loop.rs Make Resource trait opt-in, requiring #[derive(Resource)] V2 (#5577) 2022-08-08 21:36:35 +00:00
drag_and_drop.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
empty.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
empty_defaults.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
headless.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
logs.rs Use plugin setup for resource only used at setup time (#6360) 2022-10-25 22:19:34 +00:00
no_renderer.rs Rename headless_defaults example to no_renderer for clarity (#5263) 2022-07-11 14:11:32 +00:00
plugin.rs Replace the bool argument of Timer with TimerMode (#6247) 2022-10-17 13:47:01 +00:00
plugin_group.rs Unique plugin (#6411) 2022-10-31 16:12:19 +00:00
return_after_run.rs Fix return_after_run example (#6420) 2022-10-31 16:35:20 +00:00
thread_pool_resources.rs Use plugin setup for resource only used at setup time (#6360) 2022-10-25 22:19:34 +00:00
without_winit.rs Plugins own their settings. Rework PluginGroup trait. (#6336) 2022-10-24 21:20:33 +00:00