mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fix multiple options with same label.
This commit is contained in:
parent
2bc7eb165e
commit
4626c2176f
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue