So I'm looking for the proper way to hide the TimeManagerClockButton and keep it hidden.
The problem I'm coming into is after going into any interface options and then exiting them, the TimeManagerClockButton reappears.
SLDT does this which does hide it on load, however the button returns as mentioned:
Code:
function Clock:OnEnable()
if ( TimeManagerClockButton and TimeManagerClockButton:IsShown() ) then TimeManagerClockButton:Hide() end
if ( db.hideGameTime ) then
if ( GameTimeFrame and GameTimeFrame:IsShown() ) then GameTimeFrame:Hide() end
end
buildModule(self)
if ( not self.frame:IsShown() ) then self.frame:Show() end
end
function Clock:OnDisable()
self:UnregisterEvent("PLAYER_ENTERING_WORLD")
f:SetScript("OnUpdate", nil)
self.button:SetScript("OnClick", nil)
if ( TimeManagerClockButton and not TimeManagerClockButton:IsShown() ) then TimeManagerClockButton:Show() end
if ( db.hideGameTime ) then
if ( GameTimeFrame and not GameTimeFrame:IsShown() ) then GameTimeFrame:Show() end
end
if ( self.frame:IsShown() ) then self.frame:Hide() end
end
I've also read this:
http://forums.wowace.com/showthread.php?t=14105
However I can't seem to find any information on the reappearance issue.
Anyone else run into this?