From 4ae4a3527c0c3b753c728be73b8900504bdae84b Mon Sep 17 00:00:00 2001 From: Simon-L Date: Fri, 10 Dec 2021 21:25:06 +0100 Subject: [PATCH] Fix ImGui assertion error with empty IDs See: https://github.com/ocornut/imgui/issues/4796 --- plugins/Cardinal/src/Ildaeil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Cardinal/src/Ildaeil.cpp b/plugins/Cardinal/src/Ildaeil.cpp index 62b8c590..b826ad21 100644 --- a/plugins/Cardinal/src/Ildaeil.cpp +++ b/plugins/Cardinal/src/Ildaeil.cpp @@ -1445,7 +1445,7 @@ struct IldaeilWidget : ImGuiWidget, IdleCallback, Thread { ImGui::SetKeyboardFocusHere(); } - if (ImGui::InputText("", fPluginSearchString, sizeof(fPluginSearchString)-1, + if (ImGui::InputText("##pluginsearch", fPluginSearchString, sizeof(fPluginSearchString)-1, ImGuiInputTextFlags_CharsNoBlank|ImGuiInputTextFlags_AutoSelectAll)) fPluginSearchActive = true; @@ -1463,7 +1463,7 @@ struct IldaeilWidget : ImGuiWidget, IdleCallback, Thread { break; } - if (ImGui::Combo("", ¤t, pluginTypes, ARRAY_SIZE(pluginTypes))) + if (ImGui::Combo("##plugintypes", ¤t, pluginTypes, ARRAY_SIZE(pluginTypes))) { fIdleState = kIdleChangePluginType; switch (current)