fix(quest): Phase 1 compat — guard quest-log-aware frame unload

Prevent premature frame unloading for completed-but-logged quests:
- AvailableQuests: UnloadUndoable() guard on currentQuestlog
- DailyQuests: HandleDailyQuests() guard on currentQuestlog
- QuestieQuest: IsSafeToUnloadQuestFrames() helper + HideQuest() guard
- TooltipHandler: IsQuestFlaggedCompleted gated by currentQuestlog
- TrackerUtils: fallback IsComplete gated by currentQuestlog

Revert: git revert HEAD --no-edit
This commit is contained in:
Xurkon
2026-05-24 00:43:41 -05:00
parent 7863985974
commit 7ea4061959
5 changed files with 26 additions and 7 deletions
+3 -1
View File
@@ -7,6 +7,8 @@ local l10n = QuestieLoader:ImportModule("l10n")
---@type QuestieDB
local QuestieDB = QuestieLoader:ImportModule("QuestieDB")
---@type QuestiePlayer
local QuestiePlayer = QuestieLoader:ImportModule("QuestiePlayer")
--- COMPATIBILITY ---
local UnitGUID = QuestieCompat.UnitGUID
@@ -112,7 +114,7 @@ local function _PlayerHasQuest(questId)
end
-- 2) Turned in / completed
if IsQuestFlaggedCompleted and IsQuestFlaggedCompleted(questId) then
if IsQuestFlaggedCompleted and IsQuestFlaggedCompleted(questId) and not QuestiePlayer.currentQuestlog[questId] then
return true
end