From 4438d6fea23dff982783d0b6dcb0b5a0a724f1ef Mon Sep 17 00:00:00 2001 From: Taurenkey Date: Thu, 26 Dec 2024 11:35:26 +0000 Subject: [PATCH] Fix context popups --- Questionable/Windows/JournalComponents/QuestJournalUtils.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Questionable/Windows/JournalComponents/QuestJournalUtils.cs b/Questionable/Windows/JournalComponents/QuestJournalUtils.cs index c98dba68..40f59278 100644 --- a/Questionable/Windows/JournalComponents/QuestJournalUtils.cs +++ b/Questionable/Windows/JournalComponents/QuestJournalUtils.cs @@ -24,7 +24,10 @@ internal sealed class QuestJournalUtils public void ShowContextMenu(IQuestInfo questInfo, Quest? quest, string label) { - using var popup = ImRaii.ContextPopup($"##QuestPopup{questInfo.QuestId}", ImGuiPopupFlags.MouseButtonRight); + if (ImGui.IsItemClicked(ImGuiMouseButton.Right)) + ImGui.OpenPopup($"##QuestPopup{questInfo.QuestId}"); + + using var popup = ImRaii.Popup($"##QuestPopup{questInfo.QuestId}"); if (!popup) return; -- 2.45.2