ColorEdit, ColorPicker: Manipulating options popup don't mark item as edited. (#6722)

This commit is contained in:
ocornut
2023-08-25 22:48:16 +02:00
parent f617fe7890
commit 33ea1e8b78
4 changed files with 10 additions and 0 deletions

View File

@ -3940,6 +3940,8 @@ void ImGui::MarkItemEdited(ImGuiID id)
// This marking is solely to be able to provide info for IsItemDeactivatedAfterEdit().
// ActiveId might have been released by the time we call this (as in the typical press/release button behavior) but still need to fill the data.
ImGuiContext& g = *GImGui;
if (g.LockMarkEdited > 0)
return;
if (g.ActiveId == id || g.ActiveId == 0)
{
g.ActiveIdHasBeenEditedThisFrame = true;