╭ changed ─────────────╮ │src/ui/Repo/Header.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │254 - // discuss tab │ │255 - { │ │256 - var text_box = try wgt.TextBox.init(allocator, discuss_tab_label, .{ .border = .single, .round_corners = true, .wrap_kind = .none });│ │254 + // patches tab, unless it is off │ │255 + if (page.repo.event.patch_role != null) { │ │256 + var text_box = try wgt.TextBox.init(allocator, patches_tab_label, .{ .border = .single, .round_corners = true, .wrap_kind = .none });│ │257 errdefer text_box.deinit(allocator); │ │258 text_box.getFocus().mode = .all; │ │259 - text_box.getFocus().kind = .{ .custom = discussions_link }; │ │259 + text_box.getFocus().kind = .{ .custom = patches_link }; │ │260 try tab_ids.put(allocator, text_box.getFocus().id, {}); │ │261 - if (current_tag == .repo_discussions) selected_tab = text_box.getFocus().id; │ │261 + if (current_tag == .repo_patches) selected_tab = text_box.getFocus().id; │ │262 try tabs_box.children.put(allocator, text_box.getFocus().id, .{ │ │263 .widget = .{ .text_box = text_box }, │ │264 .rect = null, │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────╮ │265 - .min_size = .{ .width = discuss_tab_label.len + 2, .height = null },│ │265 + .min_size = .{ .width = patches_tab_label.len + 2, .height = null },│ │266 }); │ │267 } │ │268 │ ╰─────────────────────────────────────────────────────────────────────────────────────────╯