From 81baa1b7b0ea8431305ff07ecc551ffe9f0b561f Mon Sep 17 00:00:00 2001 From: Bogdan <477645+foobarna@users.noreply.github.com> Date: Tue, 3 Dec 2024 15:24:11 +0200 Subject: [PATCH] Update to new Settings API. --- code.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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