commit | 97638bf97745353fe79b638763bdaa84f7fe46c4 | [log] [tgz] |
---|---|---|
author | ocornut <omarcornut@gmail.com> | Fri Jul 09 17:18:23 2021 +0200 |
committer | ocornut <omarcornut@gmail.com> | Fri Jul 09 18:57:28 2021 +0200 |
tree | 073076fa2a3bcaff96df578d19ffdc579b1ebb24 | |
parent | 4a100f7f1152396e4dd08b166fef05e9efae3a5b [diff] |
BeginMenu: remove unnecessary call to ItemHoverable() which is already done by the Selectable() call. Amend 88d7b3de
diff --git a/imgui_widgets.cpp b/imgui_widgets.cpp index 8692575..2048176 100644 --- a/imgui_widgets.cpp +++ b/imgui_widgets.cpp
@@ -6858,7 +6858,7 @@ PopStyleColor(); PopID(); - const bool hovered = enabled && ItemHoverable(window->DC.LastItemRect, id); + const bool hovered = (g.HoveredId == id) && enabled; if (menuset_is_open) g.NavWindow = backed_nav_window;