diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-08-22 15:06:15 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-08-22 15:06:15 -0400 |
| commit | 3196c24604551745645f4737a67ecfebb416a4fc (patch) | |
| tree | d37d34e19c49c58a3c124d8a1ac24bff64e584d3 /editor/editor.cpp | |
| parent | 7c283bf98c54245e87c43aac100bb87cb04bb04e (diff) | |
pke-editor: handle callback list popup empty
Diffstat (limited to 'editor/editor.cpp')
| -rw-r--r-- | editor/editor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/editor.cpp b/editor/editor.cpp index e1c10d2..c90fb08 100644 --- a/editor/editor.cpp +++ b/editor/editor.cpp @@ -1534,6 +1534,10 @@ bool RecordImGui_CallbackSelectModal(long &selectedIndex) { } } ImGui::EndPopup(); + if (ImGui::IsPopupOpen("CallbackSelect") == true && count == 0) { + fprintf(stderr, "[RecordImGui_CallbackSelectModal] No available callback signatures.\n"); + ImGui::CloseCurrentPopup(); + } } return returnValue; } |
