From b7842204c531e5ae72c4456e775a86cd90ffccbd Mon Sep 17 00:00:00 2001 From: Brandon Reinhart Date: Mon, 11 Mar 2024 14:37:47 -0500 Subject: [PATCH] always open/close before render, so that initial open key doesn't get sent to egui --- src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 30694a5..d7460b5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -38,8 +38,11 @@ impl Plugin for DevConsolePlugin { Update, ( ui::read_logs, - ui::open_close_ui, - ui::render_ui.run_if(|s: Res| s.open), + ( + ui::open_close_ui, + ui::render_ui.run_if(|s: Res| s.open), + ) + .chain(), ), ); }