If you configure the WindowPlugin to not close the app if the PrimaryWindow is closed the world inspector gui will panic as it can't retrieve the window.
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: NoEntities("bevy_ecs::query::state::QueryState<&bevy_egui::EguiContext, bevy_ecs::query::filter::With<bevy_window::window::PrimaryWindow>>")', C:\<redacted>\.cargo\registry\src\index.crates.io-6f17d22bba15001f\bevy-inspector-egui-0.18.3\src\quick.rs:80:10
This should be a fairly simple fix, the existing code looks like this:
If you configure the WindowPlugin to not close the app if the PrimaryWindow is closed the world inspector gui will panic as it can't retrieve the window.
Configuring the WindowPlugin:
Panic after closing the window:
This should be a fairly simple fix, the existing code looks like this:
Replacing single with get_single would return a result which can be properly checked without panic :)