[client] overlay: guard ImGui table and tab bar scopes

This commit is contained in:
Geoffrey McRae
2026-07-30 09:17:09 +10:00
parent 510f6e8e14
commit 8fb355e6b7
2 changed files with 80 additions and 70 deletions

View File

@@ -51,20 +51,21 @@ static void configCallback(void * udata, int * id)
igCheckbox("Show timing graphs", &gs.show);
igSeparator();
igBeginTable("graphs_split", 2, 0, (ImVec2){}, 0);
GraphHandle graph;
ll_lock(gs.graphs);
ll_forEachNL(gs.graphs, item, graph)
if (igBeginTable("graphs_split", 2, 0, (ImVec2){}, 0))
{
igTableNextColumn();
igPushID_Ptr(graph);
igCheckbox(graph->name, &graph->enabled);
igPopID();
}
ll_unlock(gs.graphs);
GraphHandle graph;
ll_lock(gs.graphs);
ll_forEachNL(gs.graphs, item, graph)
{
igTableNextColumn();
igPushID_Ptr(graph);
igCheckbox(graph->name, &graph->enabled);
igPopID();
}
ll_unlock(gs.graphs);
igEndTable();
igEndTable();
}
}
static void showTimingKeybind(int sc, void * opaque)