Fix right-click menu for 'items for auto-buy'

This commit is contained in:
Liza 2024-07-17 02:50:40 +02:00
parent 92f6c9bc8a
commit 2ab7ae3c06
Signed by: liza
GPG Key ID: 7199F8D727D55F67
2 changed files with 10 additions and 10 deletions

View File

@ -1,6 +1,6 @@
<Project Sdk="Dalamud.NET.Sdk/9.0.2">
<PropertyGroup>
<Version>5.1</Version>
<Version>5.2</Version>
<OutputPath>dist</OutputPath>
</PropertyGroup>

View File

@ -117,15 +117,6 @@ internal sealed class ConfigWindow : LWindow, IPersistableWindowConfig
ImGui.Selectable($"{item.Name}{(item.Limited ? $" {SeIconChar.Hyadelyn.ToIconString()}" : "")}",
false, ImGuiSelectableFlags.SpanAllColumns);
if (wrap != null)
{
ImGui.SameLine(0, 0);
ImGui.SetCursorPos(pos);
ImGui.Image(wrap.ImGuiHandle, iconSize);
}
wrap?.Dispose();
if (ImGui.BeginDragDropSource())
{
ImGui.SetDragDropPayload("DeliverooDragDrop", nint.Zero, 0);
@ -157,6 +148,15 @@ internal sealed class ConfigWindow : LWindow, IPersistableWindowConfig
ImGui.EndPopup();
}
if (wrap != null)
{
ImGui.SameLine(0, 0);
ImGui.SetCursorPos(pos);
ImGui.Image(wrap.ImGuiHandle, iconSize);
wrap.Dispose();
}
ImGui.EndDisabled();
ImGui.PopID();
}