Skip to content

Commit

Permalink
💅
Browse files Browse the repository at this point in the history
  • Loading branch information
ls- committed Mar 6, 2018
1 parent 8d8be44 commit 2af6e9b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,25 @@ end
E:RegisterEvent("ADDON_LOADED", function(arg1)
if arg1 ~= addonName then return end

-- -> 70300.12
if LS_UI_GLOBAL_CONFIG and LS_UI_GLOBAL_CONFIG.profiles then
for _, profile in next, LS_UI_GLOBAL_CONFIG.profiles do
if profile.bars then
for _, bar in next, profile.bars do
if type(bar) == "table" then
if bar.hotkey ~= nil and type(bar.hotkey) == "boolean" then
bar.hotkey = nil
end

if bar.macro ~= nil and type(bar.macro) == "boolean" then
bar.macro = nil
end
end
end
end
end
end

C.db = LibStub("AceDB-3.0"):New("LS_UI_GLOBAL_CONFIG", D)
LibStub("LibDualSpec-1.0"):EnhanceDatabase(C.db, "LS_UI_GLOBAL_CONFIG")

Expand Down

0 comments on commit 2af6e9b

Please sign in to comment.