Quantcast

Allow the clock to be skinned if the clock has been loaded prematurely

Adrian L Lange [10-08-09 - 22:13]
Allow the clock to be skinned if the clock has been loaded prematurely
Filename
pMinimap.lua
diff --git a/pMinimap.lua b/pMinimap.lua
index f8c5723..6d00af0 100644
--- a/pMinimap.lua
+++ b/pMinimap.lua
@@ -252,6 +252,12 @@ end

 function addon:VARIABLES_LOADED(event)
 	SetCVar('showClock', '1')
+
+	if(not IsAddOnLoaded('Blizzard_TimeManager')) then
+		LoadAddOn('Blizzard_TimeManager')
+	elseif(not self:IsEventRegistered('CALENDAR_UPDATE_PENDING_INVITES')) then
+		self:ADDON_LOADED(event, 'Blizzard_TimeManager')
+	end
 end

 function addon:CALENDAR_UPDATE_PENDING_INVITES()