feat(info): add info diag
cargo devel CI / cargo CI (push) Successful in 2m57s Details

This commit is contained in:
Christoph J. Scherr 2024-08-13 17:20:19 +02:00
parent 8f51a5ff44
commit cffb580036
2 changed files with 7 additions and 4 deletions

View File

@ -25,3 +25,4 @@ libpt = { version = "0.6.0", features = ["cli"] }
clap = { version = "4.5.15", features = ["derive"] }
image = "0.25.2"
rand = "0.8.5"
rfd = "0.14.1"

View File

@ -54,6 +54,10 @@ impl RollatorApp {
pub fn new_with_cli() -> Self {
Self::parse()
}
pub fn info_diag(&mut self) {
let mut diag = rfd::MessageDialog::new();
}
}
impl eframe::App for RollatorApp {
@ -78,10 +82,8 @@ impl eframe::App for RollatorApp {
if ui.button("Quit").clicked() {
ctx.send_viewport_cmd(egui::ViewportCommand::Close);
}
});
ui.menu_button("AAAA", |ui| {
if ui.button("Quit").clicked() {
ctx.send_viewport_cmd(egui::ViewportCommand::Close);
if ui.button("Info").clicked() {
self.info_diag();
}
});
ui.add_space(16.0);