mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-15 01:17:00 +00:00
BeginMenu: remove unnecessary call to ItemHoverable() which is already done by the Selectable() call.
Amend 88d7b3de
This commit is contained in:
parent
4a100f7f11
commit
97638bf977
@ -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…
Reference in New Issue
Block a user