1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -04:00

Demo: add button to reset the demo

This commit is contained in:
Emil Ernerfeldt
2021-10-23 05:50:42 +02:00
parent 5d463b2af7
commit 6185ee8ce4
3 changed files with 18 additions and 9 deletions

View File

@@ -115,14 +115,6 @@ impl BackendPanel {
ui.label("egui windows:");
self.egui_windows.checkboxes(ui);
if ui
.button("Clear egui memory")
.on_hover_text("Forget scroll, positions, sizes etc")
.clicked()
{
*ui.ctx().memory() = Default::default();
}
ui.separator();
{