Selectable: Fixed bad manual cherry-pick/merge (fixes 3ec128c)

This commit is contained in:
ocornut 2023-06-27 10:57:08 +02:00
parent 3ec128c5fd
commit a2f6581171
1 changed files with 1 additions and 1 deletions

View File

@ -6528,7 +6528,7 @@ bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags fl
if (pressed)
MarkItemEdited(id);
if ((flags & ImGuiTreeNodeFlags_AllowItemOverlap) && g.ActiveId != id) // Because: we don't want to hover other while Active
if ((flags & ImGuiSelectableFlags_AllowItemOverlap) && g.ActiveId != id) // Because: we don't want to hover other while Active
SetItemAllowOverlap();
// In this branch, Selectable() cannot toggle the selection so this will never trigger.