Skip to content

Commit

Permalink
always open/close before render, so that initial open key doesn't get…
Browse files Browse the repository at this point in the history
… sent to egui
  • Loading branch information
brandon-reinhart committed Mar 11, 2024
1 parent 8d4f907 commit b784220
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ impl Plugin for DevConsolePlugin {
Update,
(
ui::read_logs,
ui::open_close_ui,
ui::render_ui.run_if(|s: Res<ConsoleUiState>| s.open),
(
ui::open_close_ui,
ui::render_ui.run_if(|s: Res<ConsoleUiState>| s.open),
)
.chain(),
),
);
}
Expand Down

0 comments on commit b784220

Please sign in to comment.