Skip to content

Commit

Permalink
debug logs as collapsing item
Browse files Browse the repository at this point in the history
  • Loading branch information
hacknus committed Nov 3, 2024
1 parent 59fe521 commit 1273210
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -774,10 +774,9 @@ impl MyApp {

ui.add_space(20.0);
ui.separator();
ui.label("Debug Info:");
ui.add_space(5.0);

egui_logger::logger_ui().show(ui);
ui.collapsing("Debug logs:", |ui| {
egui_logger::logger_ui().show(ui);
});
});
}

Expand Down Expand Up @@ -839,7 +838,7 @@ impl eframe::App for MyApp {
image::ColorType::Rgba8,
)
.unwrap();
eprintln!("Image saved to {path:?}.");
println!("Image saved to {path:?}.");
}
}
}
Expand Down

0 comments on commit 1273210

Please sign in to comment.