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:
@@ -110,7 +110,8 @@ function _DailyQuests:HandleDailyQuests(possibleQuestIds, currentQuestId, type)
|
||||
Questie.db.char.hiddenDailies[type][questId] = nil;
|
||||
else
|
||||
-- If the quest is not in the questlog remove all frames
|
||||
if (GetQuestLogIndexByID(questId) == 0) then
|
||||
-- Guard with currentQuestlog to prevent removing frames for completed-but-logged quests
|
||||
if (GetQuestLogIndexByID(questId) == 0) and not QuestiePlayer.currentQuestlog[questId] then
|
||||
_DailyQuests:HideDailyQuest(questId);
|
||||
end
|
||||
Questie.db.char.hiddenDailies[type][questId] = true;
|
||||
|
||||
Reference in New Issue
Block a user