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:
@@ -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();
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user