Skip to content

Commit

Permalink
add exit button
Browse files Browse the repository at this point in the history
  • Loading branch information
coderedart committed Sep 13, 2023
1 parent 198819a commit 6266792
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion crates/jokolay/src/app/menu.rs

This file was deleted.

5 changes: 4 additions & 1 deletion crates/jokolay/src/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use egui_backend::{egui, BackendConfig, GfxBackend, UserApp, WindowBackend};
use egui_window_glfw_passthrough::{GlfwBackend, GlfwConfig};
mod frame;
mod init;
mod menu;
mod theme;
mod trace;
use self::theme::ThemeManager;
Expand Down Expand Up @@ -158,6 +157,10 @@ impl UserApp for Jokolay {
"Show Theme Manager",
);
ui.checkbox(&mut self.menu_panel.show_tracing_window, "Show Logs");
if ui.button("exit").clicked() {
info!("exiting jokolay");
std::process::abort();
}
},
);
self.marker_manager.menu_ui(ui);
Expand Down

0 comments on commit 6266792

Please sign in to comment.