From 8397e648f3054505748b1f3c2770724f5f504f14 Mon Sep 17 00:00:00 2001 From: erri120 Date: Wed, 9 Aug 2023 14:45:06 +0200 Subject: [PATCH 01/19] Cleanup IOptionSelector API --- .../CoreDelegates/UiDelegate.cs | 4 +- src/NexusMods.CLI/CliOptionSelector.cs | 82 +++++++++++-------- src/NexusMods.Common/UserInput/ChoiceGroup.cs | 2 +- .../UserInput/IOptionSelector.cs | 4 +- 4 files changed, 52 insertions(+), 40 deletions(-) diff --git a/src/Games/NexusMods.Games.FOMOD/CoreDelegates/UiDelegate.cs b/src/Games/NexusMods.Games.FOMOD/CoreDelegates/UiDelegate.cs index e7a8d1a9cc..51565aa964 100644 --- a/src/Games/NexusMods.Games.FOMOD/CoreDelegates/UiDelegate.cs +++ b/src/Games/NexusMods.Games.FOMOD/CoreDelegates/UiDelegate.cs @@ -99,7 +99,7 @@ private static IEnumerable> ToChoices(GroupList groups) Id = group.id, Type = ConvertChoiceType(group.type), Query = group.name, - Options = ToOptions(group.options), + Options = ToOptions(group.options).ToArray(), }); } @@ -112,7 +112,7 @@ private static IEnumerable> ToOptions(IEnumerable