diff --git a/modules/load.lua b/modules/load.lua index d81d860..5331306 100644 --- a/modules/load.lua +++ b/modules/load.lua @@ -4,8 +4,7 @@ local _, addon = ... Checks whether the addon exists and is enabled. --]] function addon:IsAddOnEnabled(name) - local _, _, _, loadable = C_AddOns.GetAddOnInfo(name) - return not not loadable -- will be false if the addon is missing or disabled + return C_AddOns.GetAddOnEnableState(name, UnitName('player')) > 0 end