diff --git a/PKHeX.WinForms/Util/DialogUtil.cs b/PKHeX.WinForms/Util/DialogUtil.cs index d9ccb8bfe..f3de700fa 100644 --- a/PKHeX.WinForms/Util/DialogUtil.cs +++ b/PKHeX.WinForms/Util/DialogUtil.cs @@ -11,16 +11,16 @@ public static class DialogUtil { public bool TrySelectIndex(string caption, string text, IReadOnlyList options, out int index, int preSelect = -1) { - List choices = []; + var choices = new TaskDialogRadioButtonCollection(); for (int i = 0; i < options.Count; i++) - choices.Add(new(options[i]) { Tag = i, Checked = (i == preSelect) }); + choices.Add(new TaskDialogRadioButton(options[i]) { Tag = i, Checked = (i == preSelect) }); var page = new TaskDialogPage { Caption = caption, Text = text, Icon = TaskDialogIcon.Information, - RadioButtons = [..choices], + RadioButtons = choices, DefaultButton = TaskDialogButton.OK, Buttons = [TaskDialogButton.OK], AllowCancel = true,