Skip to content

Commit

Permalink
New settings page
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirri777 committed Nov 6, 2024
1 parent a1914ee commit ec04e32
Show file tree
Hide file tree
Showing 4 changed files with 285 additions and 284 deletions.
8 changes: 2 additions & 6 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,8 @@ local LDB = LibStub("LibDataBroker-1.1"):NewDataObject("DoYouNeedThat", {
icon = "Interface\\Icons\\inv_misc_bag_17",
OnClick = function(_, buttonPressed)
if buttonPressed == "RightButton" then
if (Settings ~= nil) then
-- wow10
local settingsCategoryID = _G['DYNT_Options'].categoryID
Settings.OpenToCategory(settingsCategoryID)
else
InterfaceOptionsFrame_OpenToCategory("DoYouNeedThat")
if (Settings ~= nil) and AddOn.categoryID then
Settings.OpenToCategory(AddOn.categoryID)
end
else
AddOn:ToggleWindow()
Expand Down
Loading

0 comments on commit ec04e32

Please sign in to comment.