Don't need to restrict ww addons

This commit is contained in:
andrew6180
2024-06-10 11:41:28 -07:00
parent 5990323b98
commit 4cc31c09cc
-33
View File
@@ -1814,36 +1814,3 @@ function Details:DestroyActor(actorObject, actorContainer, combatObject, callSta
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 )