Internals: ItemAdd: set LastItemXXX fields before navigation calls + comments about io.IniFilename (#4294)

This commit is contained in:
ocornut
2021-07-19 19:10:14 +02:00
parent 17ec4f1f6f
commit 1ad153056a
3 changed files with 16 additions and 11 deletions

View File

@ -682,6 +682,7 @@ bool ImGui::ButtonEx(const char* label, const ImVec2& size_arg, ImGuiButtonFlags
if (g.CurrentItemFlags & ImGuiItemFlags_ButtonRepeat)
flags |= ImGuiButtonFlags_Repeat;
bool hovered, held;
bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags);