Quantcast

Fix issues with the clock option

Adrian L Lange [10-08-09 - 22:14]
Fix issues with the clock option
Filename
Config.lua
pMinimap.lua
diff --git a/Config.lua b/Config.lua
index b318953..8830589 100644
--- a/Config.lua
+++ b/Config.lua
@@ -167,6 +167,7 @@ local function modules(self)
 			else
 				TimeManagerClockButton:ClearAllPoints()
 				TimeManagerClockButton:SetPoint(pMinimapDB.coordinates and 'BOTTOMLEFT' or 'BOTTOM', Minimap)
+				TimeManagerClockButton:SetScript('OnShow', nil)
 				TimeManagerClockButton:Show()
 			end
 		else
diff --git a/pMinimap.lua b/pMinimap.lua
index 6d00af0..7fc17dd 100644
--- a/pMinimap.lua
+++ b/pMinimap.lua
@@ -34,7 +34,7 @@ local defaults = {
 	coordinatesdecimals = 0,
 }

-function addon:ClockHook(self)
+function addon:ClockHook()
 	self:Hide()
 end