Browse Source

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

Amend 88d7b3de
pull/4347/head
ocornut 3 years ago
parent
commit
97638bf977
  1. 2
      imgui_widgets.cpp

2
imgui_widgets.cpp

@ -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;

Loading…
Cancel
Save