mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
Fix typos
This commit is contained in:
@@ -169,7 +169,7 @@ We have some silently breaking changes (code compiles fine but behavior changed)
|
|||||||
#### Menus close on click by default
|
#### Menus close on click by default
|
||||||
- previously menus would only close on click outside
|
- previously menus would only close on click outside
|
||||||
- either
|
- either
|
||||||
- remove the `ui.close_menu()` calls from button click handlers since they are obsolte
|
- remove the `ui.close_menu()` calls from button click handlers since they are obsolete
|
||||||
- if the menu should stay open on clicks, change the `PopupCloseBehavior`:
|
- if the menu should stay open on clicks, change the `PopupCloseBehavior`:
|
||||||
```rs
|
```rs
|
||||||
// Change this
|
// Change this
|
||||||
@@ -182,7 +182,7 @@ We have some silently breaking changes (code compiles fine but behavior changed)
|
|||||||
You can also change the behavior only for a single SubMenu by using `SubMenuButton`, but by default it should be passed to any submenus when using `MenuButton`.
|
You can also change the behavior only for a single SubMenu by using `SubMenuButton`, but by default it should be passed to any submenus when using `MenuButton`.
|
||||||
|
|
||||||
#### `Memory::is_popup_open` api now requires calls to `Memory::keep_popup_open`
|
#### `Memory::is_popup_open` api now requires calls to `Memory::keep_popup_open`
|
||||||
- The popup will immideately close if `keep_popup_open` is not called.
|
- The popup will immediately close if `keep_popup_open` is not called.
|
||||||
- It's recommended to use the new `Popup` api which handles this for you.
|
- It's recommended to use the new `Popup` api which handles this for you.
|
||||||
- If you can't switch to the new api for some reason, update the code to call `keep_popup_open`:
|
- If you can't switch to the new api for some reason, update the code to call `keep_popup_open`:
|
||||||
```rs
|
```rs
|
||||||
|
|||||||
Reference in New Issue
Block a user