mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Rename functions in Context to avoid confusion (#7773)
It's important to avoid confusion after * https://github.com/emilk/egui/pull/7770
This commit is contained in:
@@ -194,7 +194,7 @@ impl Widget for DatePickerButton<'_> {
|
||||
|
||||
// We don't want to close our popup if any other popup is open, since other popups would
|
||||
// most likely be the combo boxes in the date picker.
|
||||
let any_popup_open = ui.ctx().is_popup_open();
|
||||
let any_popup_open = ui.any_popup_open();
|
||||
if !button_response.clicked()
|
||||
&& !any_popup_open
|
||||
&& (ui.input(|i| i.key_pressed(Key::Escape)) || area_response.clicked_elsewhere())
|
||||
|
||||
Reference in New Issue
Block a user