Skip to content

Commit

Permalink
C_AddOns namespace fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nnoggie committed Jul 17, 2024
1 parent 7866349 commit 166d008
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ f:SetScript("OnEvent", function(self, event, ...)
if addon.db.enabled then
SetCVar("Sound_EnableSFX", 0)
end
for i = 1, GetNumAddOns() do
local name = GetAddOnInfo(i)
for i = 1, C_AddOns.GetNumAddOns() do
local name = C_AddOns.GetAddOnInfo(i)
if name == addonName then
local enabled = GetAddOnEnableState(nil, i)
local enabled = C_AddOns.GetAddOnEnableState(i)
if enabled == 0 then
addon.db.installed = false
end
Expand Down

0 comments on commit 166d008

Please sign in to comment.