From 6ffe5b775d8319064f0b70decb4a2fb611e9ee3c Mon Sep 17 00:00:00 2001 From: Austin Shalit Date: Wed, 30 Dec 2020 22:43:35 -0800 Subject: [PATCH] [glass] Ensure NetworkTableTree parent context menu has an id (#3015) --- glass/src/libnt/native/cpp/NetworkTables.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glass/src/libnt/native/cpp/NetworkTables.cpp b/glass/src/libnt/native/cpp/NetworkTables.cpp index 55f44a8a55..a8df63f1fc 100644 --- a/glass/src/libnt/native/cpp/NetworkTables.cpp +++ b/glass/src/libnt/native/cpp/NetworkTables.cpp @@ -509,7 +509,7 @@ static void EmitParentContextMenu(const std::string& path, // Workaround https://github.com/ocornut/imgui/issues/331 bool openWarningPopup = false; static char nameBuffer[kTextBufferSize]; - if (ImGui::BeginPopupContextItem()) { + if (ImGui::BeginPopupContextItem(path.c_str())) { ImGui::Text("%s", path.c_str()); ImGui::Separator();