Fix context popups #119

Merged
liza merged 1 commits from Taurenkey/Questionable:master into master 2024-12-26 12:29:40 +00:00
Showing only changes of commit 4438d6fea2 - Show all commits

View File

@ -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;