From c0cdde8e450b2d5b6c2c55f79938713efdc0f73b Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Sun, 17 Feb 2008 01:37:33 +0000 Subject: [PATCH] option tweaks --- Bartender4.lua | 1 + Options.lua | 1 + StanceBar.lua | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/Bartender4.lua b/Bartender4.lua index 48b0817..8f8ec02 100644 --- a/Bartender4.lua +++ b/Bartender4.lua @@ -48,6 +48,7 @@ end function Bartender4:CombatLockdown() self:Lock() + LibStub("AceConfigDialog-3.0"):Close("Bartender4") end function Bartender4:ToggleLock() diff --git a/Options.lua b/Options.lua index a96fdc5..6c4ef4c 100644 --- a/Options.lua +++ b/Options.lua @@ -148,6 +148,7 @@ function Bartender4:SetupOptions() LibStub("AceConfig-3.0"):RegisterOptionsTable("Bartender4", self.options, "bttest") local optFunc = function() + if InCombatLockdown() then return end AceConfigDialog:Open("Bartender4") --[[ local status = AceConfigDialog:GetStatusTable("Bartender4") diff --git a/StanceBar.lua b/StanceBar.lua index cef4b62..3336e48 100644 --- a/StanceBar.lua +++ b/StanceBar.lua @@ -53,6 +53,10 @@ function StanceBarMod:SetupOptions() ActionBars.options.args["stance"].args = self.options.table end +function StanceBarMod:ApplyConfig() + self.bar:ApplyConfig(self.db.profile) +end + function StanceButtonPrototype:Update() if not self:IsShown() then return end local id = self:GetID()