BeginMenu: remove unnecessary call to ItemHoverable() which is already done by the Selectable() call.

Amend 88d7b3de
This commit is contained in:
ocornut 2021-07-09 17:18:23 +02:00
parent 4a100f7f11
commit 97638bf977

View File

@ -6858,7 +6858,7 @@ bool ImGui::BeginMenu(const char* label, bool enabled)
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;