╭ changed ───────────────╮ │src/ui/widget/thread.zig│ ╰────────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1769 try box.children.put(allocator, frame.getFocus().id, .{ .widget = .{ .box = frame }, .rect = null, .min_size = .{ .width = detail_min_width, .height = null } });│ │1770 } │ │1771 │ │1772 - box.getFocus().child_id = box.children.keys()[list_index]; │ │1772 + box.getFocus().child_id = box.children.keys()[if (win.items.len > 0) detail_index else list_index]; │ │1773 return box; │ │1774 } │ │1775 │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯