inspector: mode rows need a unique ID

This commit is contained in:
Mitchell Hashimoto
2026-01-27 08:28:34 -08:00
parent 0de5f43254
commit 7feb30a836

View File

@@ -583,10 +583,12 @@ fn renderModesWindow(self: *Inspector) void {
const tag: terminal.modes.ModeTag = @bitCast(@as(terminal.modes.ModeTag.Backing, field.value));
cimgui.c.ImGui_TableNextRow();
cimgui.c.ImGui_PushIDInt(@intCast(field.value));
defer cimgui.c.ImGui_PopID();
{
_ = cimgui.c.ImGui_TableSetColumnIndex(0);
var value: bool = t.modes.get(@field(terminal.Mode, field.name));
_ = cimgui.c.ImGui_Checkbox("", &value);
_ = cimgui.c.ImGui_Checkbox("##checkbox", &value);
}
{
_ = cimgui.c.ImGui_TableSetColumnIndex(1);