From 54fc103c3119d9ef38be5605c2afd5aeff8bd7df Mon Sep 17 00:00:00 2001 From: Al McElrath Date: Thu, 1 Aug 2024 15:26:35 -0700 Subject: [PATCH] The desktop app settings feel broken. Drag release doesn't seem to trigger a redraw. See: https://github.com/mvlabat/bevy_egui/issues/292 --- examples/ex1.rs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/examples/ex1.rs b/examples/ex1.rs index ece9da7..4c47482 100644 --- a/examples/ex1.rs +++ b/examples/ex1.rs @@ -14,18 +14,18 @@ struct Runic { fn main() { App::new() - .insert_resource(WinitSettings::desktop_app()) + .insert_resource(WinitSettings::default()) .add_plugins(DefaultPlugins) .add_plugins(EguiPlugin) // .insert_resource(Runic::new()) .add_systems(Startup, setup) .add_systems(Update, update) - .add_systems( - Last, - redraw - //.run_if(on_event::>()) - .after(Assets::::asset_events), - ) + // .add_systems( + // Last, + // redraw + // //.run_if(on_event::>()) + // .after(Assets::::asset_events), + // ) .run(); } @@ -37,7 +37,8 @@ fn setup( commands.insert_resource(Runic::new(&*asset_server, &mut *textures)); } -// This isn't actually reliable, but it helps. +// This isn't actually reliable. +#[allow(unused)] fn redraw(mut events: EventReader>, mut redraw: EventWriter) { for _e in events.read() { // dbg!(e);