Unify context menu

This commit is contained in:
Liza 2023-10-01 23:52:05 +02:00
parent 3475ce6c10
commit 849f677a1b
Signed by: liza
GPG Key ID: 7199F8D727D55F67
2 changed files with 2 additions and 5 deletions

View File

@ -73,9 +73,6 @@
</ItemGroup> </ItemGroup>
<ItemGroup>
<Folder Include="External\"/>
</ItemGroup>
<Target Name="RenameLatestZip" AfterTargets="PackagePlugin"> <Target Name="RenameLatestZip" AfterTargets="PackagePlugin">
<Exec Command="rename $(OutDir)$(AssemblyName)\latest.zip $(AssemblyName)-$(Version).zip"/> <Exec Command="rename $(OutDir)$(AssemblyName)\latest.zip $(AssemblyName)-$(Version).zip"/>

View File

@ -148,9 +148,9 @@ internal sealed class ConfigWindow : Window
} }
ImGui.OpenPopupOnItemClick($"###ctx{i}", ImGuiPopupFlags.MouseButtonRight); ImGui.OpenPopupOnItemClick($"###ctx{i}", ImGuiPopupFlags.MouseButtonRight);
if (ImGui.BeginPopup($"###ctx{i}")) if (ImGui.BeginPopupContextItem($"###ctx{i}"))
{ {
if (ImGui.Selectable($"Remove {venture.Name}")) if (ImGui.MenuItem($"Remove {venture.Name}"))
itemToRemove = item; itemToRemove = item;
ImGui.EndPopup(); ImGui.EndPopup();