Fixing the statusbar color for the player breakdown window not showing on 10.0

This commit is contained in:
Tercio Jose
2022-09-04 18:00:39 -03:00
parent 685b06193a
commit 0306cda9c3
5 changed files with 17 additions and 4 deletions
+13 -1
View File
@@ -18,7 +18,7 @@
_detalhes.BFACORE = 131 --core version on BFA launch
_detalhes.SHADOWLANDSCORE = 143 --core version on Shadowlands launch
_detalhes.dragonflight_beta_version = 22
_detalhes.dragonflight_beta_version = 23
Details = _detalhes
@@ -1010,3 +1010,15 @@ do
_G ["BINDING_NAME_DETAILS_BOOKMARK10"] = format (Loc ["STRING_KEYBIND_BOOKMARK_NUMBER"], 10)
end
if (select(4, GetBuildInfo()) >= 100000) then
local f = CreateFrame("frame")
f:RegisterEvent("ADDON_ACTION_FORBIDDEN")
f:SetScript("OnEvent", function()
local text = StaticPopup1 and StaticPopup1.text and StaticPopup1.text:GetText()
if (text and text:find("Details")) then
--fix false-positive taints that are being attributed to random addons
StaticPopup1.button2:Click()
end
end)
end