From 94ae59dfa951265be4454a4adc405b5b7d6f0177 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Mon, 24 Jul 2023 20:53:04 -0300 Subject: [PATCH] Stop breakdown opening when there's player data available at the window --- Libs/DF/frames.lua | 4 ++++ Libs/DF/fw.lua | 2 +- frames/window_breakdown/window_playerbreakdown_spells.lua | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Libs/DF/frames.lua b/Libs/DF/frames.lua index 2b863cdb..a4072d8c 100644 --- a/Libs/DF/frames.lua +++ b/Libs/DF/frames.lua @@ -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 diff --git a/Libs/DF/fw.lua b/Libs/DF/fw.lua index ada2e921..22b67a1e 100644 --- a/Libs/DF/fw.lua +++ b/Libs/DF/fw.lua @@ -1,6 +1,6 @@ -local dversion = 450 +local dversion = 451 local major, minor = "DetailsFramework-1.0", dversion local DF, oldminor = LibStub:NewLibrary(major, minor) diff --git a/frames/window_breakdown/window_playerbreakdown_spells.lua b/frames/window_breakdown/window_playerbreakdown_spells.lua index 7946d85a..e2deacbd 100644 --- a/frames/window_breakdown/window_playerbreakdown_spells.lua +++ b/frames/window_breakdown/window_playerbreakdown_spells.lua @@ -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()