Skip to content

Commit

Permalink
Merge pull request #22 from foobarna/fix-settings-ui
Browse files Browse the repository at this point in the history
Update to new Settings API.
  • Loading branch information
d87 authored Dec 3, 2024
2 parents 406c5fa + 81baa1b commit be2449b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions code.lua
Original file line number Diff line number Diff line change
Expand Up @@ -355,13 +355,14 @@ end
end)
]]

local loader = CreateFrame('Frame', nil, SettingsPanel or InterfaceOptionsFrame)
local loader = CreateFrame('Frame', nil, SettingsPanel)
loader:SetScript('OnShow', function(self)
self:SetScript('OnShow', nil)

if not f.optionsPanel then
f.optionsPanel = f:CreateGUI("ClassicAuraDurations")
InterfaceOptions_AddCategory(f.optionsPanel);
f.optionsPanel.category = Settings.RegisterCanvasLayoutCategory(f.optionsPanel, "ClassicAuraDurations")
Settings.RegisterAddOnCategory(f.optionsPanel.category)
end
end)
end
Expand Down Expand Up @@ -444,7 +445,7 @@ local function AddTooltip(widget, tooltipText)
end

function f:CreateGUI(name, parent)
local frame = CreateFrame("Frame", nil, InterfaceOptionsFrame)
local frame = CreateFrame("Frame")
frame:Hide()

frame.parent = parent
Expand Down

0 comments on commit be2449b

Please sign in to comment.