From 7eb59e925974cddaefafd768645bb6584ee899a0 Mon Sep 17 00:00:00 2001 From: Xurkon Date: Fri, 20 Mar 2026 23:05:41 -0500 Subject: [PATCH] debug: Add detailed debug to QuestLogTitleButton_OnClick hook --- Modules/QuestLinks/Hooks.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Modules/QuestLinks/Hooks.lua b/Modules/QuestLinks/Hooks.lua index c01ec0d..7a775c4 100644 --- a/Modules/QuestLinks/Hooks.lua +++ b/Modules/QuestLinks/Hooks.lua @@ -48,9 +48,10 @@ function Hooks:HookQuestLogTitle() -- For all other clicks (including tracking/untracking), use the original function -- only call Questie's tracker if we actually want to fix this quest (normal quests already call AQW_insert) -- Only handle tracking on shift-click for "Talk to" quests (no objectives) + print("[DEBUG] questLogLineIndex=", questLogLineIndex, "numLeaderBoards=", GetNumQuestLeaderBoards(questLogLineIndex), "shift=", IsShiftKeyDown()) if Questie.db.profile.trackerEnabled and GetNumQuestLeaderBoards(questLogLineIndex) == 0 and IsShiftKeyDown() then - print("[DEBUG] Hook tracking condition met for questId=", questId) - local _, _, _, _, _, _, _, questId = GetQuestLogTitle(questLogLineIndex) + local _, _, _, isHeader, _, _, _, questId = GetQuestLogTitle(questLogLineIndex) + print("[DEBUG] After GetQuestLogTitle - isHeader=", isHeader, "questId=", questId) if questId and questId > 0 then if Questie.db.char.TrackedQuests[questId] or (Questie.db.profile.autoTrackQuests and (not Questie.db.char.AutoUntrackedQuests[questId])) then -- Quest is currently tracked — hidden it