From 4cc31c09cc9f955cefb91cd705b01364792d3114 Mon Sep 17 00:00:00 2001 From: andrew6180 <16847730+andrew6180@users.noreply.github.com> Date: Mon, 10 Jun 2024 11:41:28 -0700 Subject: [PATCH] Don't need to restrict ww addons --- boot.lua | 35 +---------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/boot.lua b/boot.lua index 1addedf6..842713a3 100644 --- a/boot.lua +++ b/boot.lua @@ -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 ) \ No newline at end of file +end \ No newline at end of file