Skip to content

Commit

Permalink
Give all imgui elements ids
Browse files Browse the repository at this point in the history
  • Loading branch information
pongo1231 committed Aug 3, 2023
1 parent ad7b240 commit 37c3f26
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ScriptViewer/Components/GlobalView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void GlobalView::RunImGui()

if (ms_pGlobals && ms_pcwGlobals)
{
ImGui::BeginListBox("");
ImGui::BeginListBox("##globalTable");

for (WORD wGlobalIdx = 0; wGlobalIdx < *ms_pcwGlobals; wGlobalIdx++)
{
Expand Down
2 changes: 1 addition & 1 deletion ScriptViewer/Components/RecordView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ void RecordView::RunImGui()

ImGui::PushItemWidth(-1);

if (ImGui::BeginTable("", 2,
if (ImGui::BeginTable("##scriptTable", 2,
ImGuiTableFlags_NoSavedSettings | ImGuiTableFlags_RowBg | ImGuiTableFlags_Resizable
| ImGuiTableFlags_ScrollY | ImGuiTableFlags_SizingStretchSame))
{
Expand Down
2 changes: 1 addition & 1 deletion ScriptViewer/Components/ScriptView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void ScriptView::RunImGui()
ciColumns++;
}

if (ImGui::BeginTable("", ciColumns,
if (ImGui::BeginTable("##scriptTable", ciColumns,
ImGuiTableFlags_NoSavedSettings | ImGuiTableFlags_RowBg | ImGuiTableFlags_Resizable
| ImGuiTableFlags_ScrollY | ImGuiTableFlags_SizingStretchSame,
{ 0, -73.f }))
Expand Down

0 comments on commit 37c3f26

Please sign in to comment.