Skip to content

Commit

Permalink
Update for the new Settings Panel
Browse files Browse the repository at this point in the history
  • Loading branch information
d87 committed Sep 10, 2023
1 parent 5868a5c commit bef9f26
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions Options/NugRunningOptions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1912,7 +1912,7 @@ local function MakeGeneralOptions()
AceConfigRegistry:RegisterOptionsTable("NugRunningGeneral", opt)

local AceConfigDialog = LibStub("AceConfigDialog-3.0")
local panelFrame = AceConfigDialog:AddToBlizOptions("NugRunningGeneral", "General", "NugRunning")
local panelFrame = AceConfigDialog:AddToBlizOptions("NugRunningGeneral", "NugRunning")

return panelFrame
end
Expand Down Expand Up @@ -1955,21 +1955,10 @@ end

do
local f = CreateFrame('Frame', "NugRunningOptions", InterfaceOptionsFrame)
f.name = "NugRunning"
InterfaceOptions_AddCategory(f);

f.general = MakeGeneralOptions()
f.general = MakeGeneralOptions() -- makes the root category now
f.help = MakeHelp()

NugRunningGUI.frame = NugRunningGUI:Create("Spell List", "NugRunning")
f.spell_list = NugRunningGUI.frame.frame
InterfaceOptions_AddCategory(f.spell_list);

f:Hide()
f:SetScript("OnShow", function(self)
self:Hide();
local list = self.spell_list
InterfaceOptionsFrame_OpenToCategory (list)
InterfaceOptionsFrame_OpenToCategory (list)
end)
end

0 comments on commit bef9f26

Please sign in to comment.