1
0
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:
Emil Ernerfeldt
2025-12-14 16:49:51 +01:00
committed by GitHub
parent bc48599f65
commit 453e34b4df
7 changed files with 99 additions and 32 deletions

View File

@@ -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())