Fixed issues with position saving and reseting profiles

This commit is contained in:
Hendrik Leppkes
2008-11-11 16:13:49 +01:00
parent 7f57e78c61
commit 90c58593b9
8 changed files with 42 additions and 19 deletions
+6 -2
View File
@@ -52,8 +52,6 @@ function MicroMenuMod:OnEnable()
v:SetFrameLevel(self.bar:GetFrameLevel() + 1)
v.ClearSetPoint = self.bar.ClearSetPoint
end
self.bar:SetPoint("CENTER", -105, 27)
end
self.bar:Enable()
self:ToggleOptions()
@@ -69,5 +67,11 @@ MicroMenuBar.button_height = 58
MicroMenuBar.vpad_offset = -21
function MicroMenuBar:ApplyConfig(config)
ButtonBar.ApplyConfig(self, config)
if not self.config.position then
self:ClearSetPoint("CENTER", -105, 27)
self:SavePosition()
end
self:UpdateButtonLayout()
end