Cause profile switch sucks
Darthpred [06-01-15 - 18:04]
Cause profile switch sucks
diff --git a/ElvUI_SLE/core/toolkit.lua b/ElvUI_SLE/core/toolkit.lua
index d5618a9..eea0366 100644
--- a/ElvUI_SLE/core/toolkit.lua
+++ b/ElvUI_SLE/core/toolkit.lua
@@ -65,6 +65,7 @@ local function UpdateAll()
end
LT:LootShow()
LT:Update()
+ UB.Holder.db = E.db.sle.uibuttons
UB.Holder:FrameSize()
RM:UpdateBar(true)
F:UpdateLayout()
diff --git a/ElvUI_SLE/libs/LibElv-UIButtons-1.0/LibElv-UIButtons-1.0.lua b/ElvUI_SLE/libs/LibElv-UIButtons-1.0/LibElv-UIButtons-1.0.lua
index 30d6647..92d81f7 100644
--- a/ElvUI_SLE/libs/LibElv-UIButtons-1.0/LibElv-UIButtons-1.0.lua
+++ b/ElvUI_SLE/libs/LibElv-UIButtons-1.0/LibElv-UIButtons-1.0.lua
@@ -308,7 +308,8 @@ function lib:CreateFrame(name, db, default, style, styleDefault)
if not style and not styleDefault then print("Sorry but you didn't set defaults for this menu bar's style. Aborting creation"); return end
local menu = CreateFrame("Frame", name, E.UIParent)
menu.db = db
- EqualizeDB(menu.db, default)
+ menu.default = default
+ EqualizeDB(menu.db, menu.default)
if not style and styleDefault then style = styleDefault end
menu.style = style
@@ -387,7 +388,7 @@ local function GenerateTable(menu, coreGroup, groupName, groupTitle)
enabled = {
order = 3,
type = "toggle",
- name = L["Enable"],
+ name = ENABLE,
desc = L["Show/Hide UI buttons."],
get = function(info) return menu.db.enable end,
set = function(info, value) menu.db.enable = value; menu:ToggleShow() end