mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-26 05:27:01 +00:00
Selectable: Fixed bad manual cherry-pick/merge (fixes 3ec128c
)
This commit is contained in:
parent
3ec128c5fd
commit
a2f6581171
@ -6528,7 +6528,7 @@ bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags fl
|
|||||||
if (pressed)
|
if (pressed)
|
||||||
MarkItemEdited(id);
|
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();
|
SetItemAllowOverlap();
|
||||||
|
|
||||||
// In this branch, Selectable() cannot toggle the selection so this will never trigger.
|
// In this branch, Selectable() cannot toggle the selection so this will never trigger.
|
||||||
|
Loading…
Reference in New Issue
Block a user