Fix multiple options with same label.

This commit is contained in:
Ottermandias 2023-07-07 00:46:22 +02:00
parent 2bc7eb165e
commit 4626c2176f

View file

@ -395,8 +395,9 @@ public partial class ModEditWindow : Window, IDisposable
if (!combo)
return;
foreach (var option in _mod!.AllSubMods)
foreach (var (option, idx) in _mod!.AllSubMods.WithIndex())
{
using var id = ImRaii.PushId(idx);
if (ImGui.Selectable(option.FullName, option == _editor.Option))
_editor.LoadOption(option.GroupIdx, option.OptionIdx);
}