forked from liza/Questionable
Merge pull request 'Fix context popups' (#119) from Taurenkey/Questionable:master into master
Reviewed-on: liza/Questionable#119
This commit is contained in:
commit
3382b84f17
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user