Skip to content

Commit

Permalink
Fix ImGui assertion error with empty IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-L authored and falkTX committed Dec 10, 2021
1 parent 8c3ad5a commit c459ab9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/Cardinal/src/Ildaeil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -1463,7 +1463,7 @@ struct IldaeilWidget : ImGuiWidget, IdleCallback, Thread {
break;
}

if (ImGui::Combo("", &current, pluginTypes, ARRAY_SIZE(pluginTypes)))
if (ImGui::Combo("##plugintypes", &current, pluginTypes, ARRAY_SIZE(pluginTypes)))
{
fIdleState = kIdleChangePluginType;
switch (current)
Expand Down

0 comments on commit c459ab9

Please sign in to comment.