Skip to content

Commit

Permalink
- Update the AddonCompartment logic. (Closes #352)
Browse files Browse the repository at this point in the history
  • Loading branch information
StormFX committed Dec 25, 2023
1 parent 8e81faf commit c860423
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Options/General.lua
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function Setup.General(self)
values = {
[0] = L["None"],
[1] = L["Minimap"],
[2] = (WOW_RETAIL and L["Add-On Compartment"]) or nil,
[2] = (AddonCompartmentFrame and L["Add-On Compartment"]) or nil,
},
order = 2,
disabled = function() return not LIB_DBI end,
Expand Down
6 changes: 2 additions & 4 deletions Options/LDB.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ local MASQUE, Core = ...
-- WoW API
---

local AOC_FRAME = AddonCompartmentFrame
local InCombatLockdown = _G.InCombatLockdown

----------------------------------------
Expand All @@ -28,9 +29,6 @@ local LIB_DBI = Core.LIB_DBI
-- Internal
---

-- @ Masque
local WOW_RETAIL = Core.WOW_RETAIL

-- @ Options\Core
local Setup = Core.Setup

Expand Down Expand Up @@ -96,7 +94,7 @@ function Core:UpdateIconPosition(Position)
end

-- Add-On Compartment
if WOW_RETAIL then
if AOC_FRAME then
if pos == 2 then
LIB_DBI:AddButtonToCompartment(MASQUE)
else
Expand Down

0 comments on commit c860423

Please sign in to comment.