Skip to content

Commit

Permalink
revert accident
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Sep 19, 2024
1 parent 917b31b commit 8d109d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/egui_demo_app/src/backend_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ impl BackendPanel {
}

ui.horizontal(|ui| {
if ui.button("Request discard").hovered() {
ui.ctx().request_discard("manual click");
if ui.button("Request discard").clicked() {
ui.ctx().request_discard();

if !ui.ctx().will_discard() {
ui.label("Discard denied!");
Expand Down

0 comments on commit 8d109d5

Please sign in to comment.