From 2d924211d124e9f2a7f2bcd833f7bf6136526ba8 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Sat, 11 Nov 2023 14:14:12 -0300 Subject: [PATCH] Fixed statistics frame not closing the options frame when clicking on the X button --- frames/window_statistics.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frames/window_statistics.lua b/frames/window_statistics.lua index 023f9790..23c609b7 100644 --- a/frames/window_statistics.lua +++ b/frames/window_statistics.lua @@ -62,6 +62,8 @@ function Details:OpenRaidHistoryWindow(raidName, bossEncounterId, difficultyId, --create title bar local titlebar = DF:CreateTitleBar(statisticsFrame, "Details! " .. Loc ["STRING_STATISTICS"]) + titlebar.CloseButton:SetScript("OnClick", function() statisticsFrame:GetParent():Hide() end) + --STRING_GUILDDAMAGERANK_TUTORIAL_DESC --STRING_OPTIONS_CHART_CLOSE