Don't need to restrict ww addons
This commit is contained in:
@@ -1813,37 +1813,4 @@ function Details:DestroyActor(actorObject, actorContainer, combatObject, callSta
|
||||
--leave a trace that the actor has been deleted
|
||||
actorObject.__destroyed = true
|
||||
actorObject.__destroyedBy = debugstack(callStackDepth or 2, 1, 0)
|
||||
end
|
||||
|
||||
local restrictedAddons = {
|
||||
'!!WWAddOnsFix',
|
||||
}
|
||||
|
||||
local restrictedAddonFrame = CreateFrame('frame')
|
||||
restrictedAddonFrame:RegisterEvent('PLAYER_ENTERING_WORLD')
|
||||
|
||||
local function disableRestrictedAddons()
|
||||
for _, addonName in pairs(restrictedAddons) do
|
||||
if C_AddOns.GetAddOnEnableState(addonName) ~= 0 then
|
||||
StaticPopupDialogs["DETAILS_RESTRICTED_ADDON"] = {
|
||||
text = "You are running " .. addonName .. " which is incompatible with Details! Damage Meter. It must be disabled for Details to function properly.",
|
||||
button1 = "Disable " .. addonName,
|
||||
button2 = "Disable Details!",
|
||||
OnAccept = function()
|
||||
C_AddOns.DisableAddOn(addonName)
|
||||
ReloadUI()
|
||||
end,
|
||||
OnCancel = function()
|
||||
C_AddOns.DisableAddOn('Details')
|
||||
ReloadUI()
|
||||
end,
|
||||
timeout = 0,
|
||||
whileDead = true,
|
||||
}
|
||||
StaticPopup_Show("DETAILS_RESTRICTED_ADDON")
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
restrictedAddonFrame:SetScript('OnEvent', function() C_Timer.After(2, disableRestrictedAddons) end )
|
||||
end
|
||||
Reference in New Issue
Block a user