Stop breakdown opening when there's player data available at the window

This commit is contained in:
Tercio Jose
2023-07-24 20:53:04 -03:00
parent 762c80669d
commit 94ae59dfa9
3 changed files with 6 additions and 2 deletions
+4
View File
@@ -527,6 +527,10 @@ function detailsFramework:AddRoundedCornersToFrame(frame, preset)
frame = frame and frame.widget or frame
assert(frame and frame.GetObjectType and frame.SetPoint, "AddRoundedCornersToFrame(frame): frame must be a frame object.")
if (frame.__rcorners) then
return
end
if (frame.GetBackdropBorderColor) then
local red, green, blue, alpha = frame:GetBackdropBorderColor()
if (alpha and alpha > 0) then
+1 -1
View File
@@ -1,6 +1,6 @@
local dversion = 450
local dversion = 451
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary(major, minor)
@@ -562,7 +562,7 @@ function spellsTab.OnCreateTabCallback(tabButton, tabFrame) --~init
DF:AddRoundedCornersToFrame(optionsButton, preset)
--open the breakdown window at startup for testing
--[= debug
--[=[ debug
C_Timer.After(1, function()
Details:OpenPlayerDetails(1)
C_Timer.After(1, function()