╭ changed ───────────────╮ │src/ui/widget/thread.zig│ ╰────────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2332 if (formWidget(form, .patch_source)) |source| { │ │2333 source.field().options.label = if (failure == .invalid_source_branch) " source branch (not found) " else if (failure == .same_branch) " source branch (same as target) " else if (failure == .unrelated_branches) " source branch (unrelated) " else " source branch ";│ │2334 const submit = formWidget(form, .submit_button) orelse return error.MissingFormField; │ │2335 - try submit.setLabel(allocator, switch (source.selected) { │ │2335 + try submit.setLabel(allocator, switch (source.selectedKind()) { │ │2336 .fork => "submit draft", │ │2337 .branch => "submit patch", │ │2338 }); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2731 │ │2732 if (comptime supports_drafts) { │ │2733 const source = formWidget(form, .patch_source) orelse return error.MissingFormField;│ │2734 - const source_branch = switch (source.selected) { │ │2734 + const source_branch = switch (source.selectedKind()) { │ │2735 .fork => null, │ │2736 .branch => try source.field().text(allocator), │ │2737 }; │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────╮ │2876 .description = try aa.dupe(u8, description), │ │2877 .target_branch = try aa.dupe(u8, target_branch), │ │2878 .source_branch = if (source) |value| try value.field().text(aa) else "",│ │2879 - .source_kind = if (source) |value| value.selected else .fork, │ │2879 + .source_kind = if (source) |value| value.selectedKind() else .fork, │ │2880 } else .{ │ │2881 .title = try aa.dupe(u8, title), │ │2882 .tags = try aa.dupe(u8, tags), │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯