[glass] Ensure NetworkTableTree parent context menu has an id (#3015)

This commit is contained in:
Austin Shalit
2020-12-30 22:43:35 -08:00
committed by GitHub
parent be0805b85b
commit 6ffe5b775d

View File

@@ -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();