diff WorldQuests.lua @ 84:a12f782571c5 v1.4.5

- Fixed more filter bar issues
author Nenue
date Mon, 10 Apr 2017 17:50:06 -0400
parents 26d736fbfe67
children effb42f6fabd
line wrap: on
line diff
--- a/WorldQuests.lua	Mon Apr 10 17:29:46 2017 -0400
+++ b/WorldQuests.lua	Mon Apr 10 17:50:06 2017 -0400
@@ -573,7 +573,7 @@
 
 -- Updates quest markers in taskInfo while associating them with the given map
 function Module:UpdateQuestsForMap(taskInfo, mapID)
-  print('UpdateQuestsForMap()', GetMapNameByID(mapID), GetMapNameByID(db.currentMapID), layoutDirty)
+  print('|cFF00FF00UpdateQuestsForMap()|r', GetMapNameByID(mapID), GetMapNameByID(db.currentMapID), layoutDirty)
   if db.QuestsByZone[mapID] then
     wipe(db.QuestsByZone[mapID])
   end
@@ -585,6 +585,7 @@
     local pin = self:AcquirePin(info)
 
     if pin then
+      pin.used = true
       print(pin.title, pin.isStale, layoutDirty, (pin.owningFrame ~= WorldMapFrame))
       if pin:IsShown() and (layoutDirty or pin.isStale or (pin.owningFrame ~= WorldMapFrame)) then
         local scaleFactor = SCALE_FACTORS[(pin.dataLoaded and not pin.filtered) and scaleConstant or 1]