Missing follower cache preload
Alar of Daggerspine [12-06-14 - 11:04]
Missing follower cache preload
Signed-off-by: Alar of Daggerspine <alar@aspide.it>
diff --git a/GarrisonCommander.lua b/GarrisonCommander.lua
index 8895b12..7369b07 100644
--- a/GarrisonCommander.lua
+++ b/GarrisonCommander.lua
@@ -482,6 +482,8 @@ function addon:OnInitialized()
-- Forcing refresh when needed without possibly disrupting Blizzard Logic
self:SecureHook("GarrisonMissionPage_Close","RefreshMissions") -- Missino started
self:SecureHook("GarrisonMissionFrame_HideCompleteMissions","RefreshMissions") -- Mission reward completed
+ self:CacheFollowers()
+
--@debug@
--Only Used for development
self:RegisterEvent("GARRISON_MISSION_LIST_UPDATE",print)
@@ -598,11 +600,6 @@ end
function addon:CleanUp()
collectgarbage("step",10)
end
-function addon:SetUp(full)
- if (GMF.MissionTab.MissionList.showInProgress) then return end
---@end-debug@
- self:CacheFollowers()
-end
function addon:RefreshMissions()
--@debug@
print("Refresh missions called")