Fix alot of bugs with switching profiles

This commit is contained in:
Hendrik Leppkes
2008-10-15 10:02:40 +02:00
parent 9b35e84ef7
commit b549507c73
8 changed files with 20 additions and 46 deletions
+7
View File
@@ -46,8 +46,15 @@ function Bartender4.ButtonBar:SkinChanged(SkinID, Gloss, Backdrop, Group, Button
bar:SkinChanged(SkinID, Gloss, Backdrop, Colors, Button)
end
function ButtonBar:UpdateSkin()
if not self.LBFGroup then return end
local config = self.config
self.LBFGroup:Skin(config.skin.ID, config.skin.Gloss, config.skin.Backdrop, config.skin.Colors)
end
function ButtonBar:ApplyConfig(config)
Bar.ApplyConfig(self, config)
ButtonBar.UpdateSkin(self)
-- any module inherting this template should call UpdateButtonLayout after setting up its buttons, we cannot call it here
--self:UpdateButtonLayout()
end