diff --git a/code.lua b/code.lua index 88b1cd1..9c59273 100644 --- a/code.lua +++ b/code.lua @@ -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 @@ -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