From 3196c24604551745645f4737a67ecfebb416a4fc Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Fri, 22 Aug 2025 15:06:15 -0400 Subject: pke-editor: handle callback list popup empty --- editor/editor.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'editor') 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; } -- cgit v1.2.3