Use the correct ApplyConfig when enabling a module
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ function BagBarMod:OnEnable()
|
||||
end
|
||||
self.bar:Enable()
|
||||
self:ToggleOptions()
|
||||
self.bar:ApplyConfig(self.db.profile)
|
||||
self:ApplyConfig()
|
||||
end
|
||||
|
||||
function BagBarMod:ApplyConfig()
|
||||
|
||||
+1
-1
@@ -55,7 +55,7 @@ function MicroMenuMod:OnEnable()
|
||||
end
|
||||
self.bar:Enable()
|
||||
self:ToggleOptions()
|
||||
self.bar:ApplyConfig(self.db.profile)
|
||||
self:ApplyConfig()
|
||||
end
|
||||
|
||||
function MicroMenuMod:ApplyConfig()
|
||||
|
||||
+2
-2
@@ -33,7 +33,7 @@ function RepBarMod:OnEnable()
|
||||
end
|
||||
self.bar:Enable()
|
||||
self:ToggleOptions()
|
||||
self.bar:ApplyConfig(self.db.profile)
|
||||
self:ApplyConfig()
|
||||
end
|
||||
|
||||
function RepBarMod:ApplyConfig()
|
||||
@@ -80,7 +80,7 @@ function XPBarMod:OnEnable()
|
||||
end
|
||||
self.bar:Enable()
|
||||
self:ToggleOptions()
|
||||
self.bar:ApplyConfig(self.db.profile)
|
||||
self:ApplyConfig()
|
||||
end
|
||||
|
||||
XPBarMod.ApplyConfig = RepBarMod.ApplyConfig
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ function StanceBarMod:OnEnable()
|
||||
self.bar:RegisterEvent("ACTIONBAR_PAGE_CHANGED")
|
||||
self:RegisterEvent("UPDATE_BINDINGS", "ReassignBindings")
|
||||
self:ReassignBindings()
|
||||
self.bar:ApplyConfig(self.db.profile)
|
||||
self:ApplyConfig()
|
||||
end
|
||||
|
||||
StanceBarMod.button_count = 10
|
||||
|
||||
Reference in New Issue
Block a user