This commit is contained in:
Liza 2024-10-28 21:33:32 +01:00
parent e834160cd3
commit 23e29c4cc6
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -294,7 +294,7 @@ internal sealed class VentureListTab : ITab
ImGui.GetWindowDrawList().AddRect(topLeft, bottomRight, ImGui.GetColorU32(ImGuiColors.DalamudGrey), 3f, ImGui.GetWindowDrawList().AddRect(topLeft, bottomRight, ImGui.GetColorU32(ImGuiColors.DalamudGrey), 3f,
ImDrawFlags.RoundCornersAll); ImDrawFlags.RoundCornersAll);
int newIndex = itemPositions.IndexOf(x => ImGui.IsMouseHoveringRect(x.TopLeft, x.BottomRight, true)); int newIndex = itemPositions.FindIndex(x => ImGui.IsMouseHoveringRect(x.TopLeft, x.BottomRight, true));
if (newIndex >= 0 && oldIndex != newIndex) if (newIndex >= 0 && oldIndex != newIndex)
{ {
itemToAdd = list.Items.Single(x => x.InternalId == _draggedItem.Value.Item2); itemToAdd = list.Items.Single(x => x.InternalId == _draggedItem.Value.Item2);