Skip to content

Commit

Permalink
[examples] test_window_impl: Add "Close" button to stacked modals
Browse files Browse the repository at this point in the history
The "Close" button was forgotten in previous commits.
  • Loading branch information
malikolivier committed Sep 28, 2018
1 parent 4e328d3 commit 4f360b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions imgui-examples/examples/test_window_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,10 @@ CTRL+click on individual component to input value.\n",
ui.close_current_popup();
}
});

if ui.button(im_str!("Close"), (0.0, 0.0)) {
ui.close_current_popup();
}
});
});
}
Expand Down

0 comments on commit 4f360b8

Please sign in to comment.