From 849f677a1bb31ae5e850f5cfa36e539ef4bc7462 Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Sun, 1 Oct 2023 23:52:05 +0200 Subject: [PATCH] Unify context menu --- ARControl/ARControl.csproj | 3 --- ARControl/Windows/ConfigWindow.cs | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/ARControl/ARControl.csproj b/ARControl/ARControl.csproj index 798839f..50b6ec1 100644 --- a/ARControl/ARControl.csproj +++ b/ARControl/ARControl.csproj @@ -73,9 +73,6 @@ - - - diff --git a/ARControl/Windows/ConfigWindow.cs b/ARControl/Windows/ConfigWindow.cs index 6eca13a..a3e08cb 100644 --- a/ARControl/Windows/ConfigWindow.cs +++ b/ARControl/Windows/ConfigWindow.cs @@ -148,9 +148,9 @@ internal sealed class ConfigWindow : Window } 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; ImGui.EndPopup();