From b4ac5579749a0fb7b25a679ae96d9ec7caff47e8 Mon Sep 17 00:00:00 2001 From: Infus Date: Sun, 21 May 2023 18:59:20 +0200 Subject: [PATCH] Hide tip popup on minimze and switching pages Fixes: #4462 --- WeakAurasOptions/OptionsFrames/OptionsFrame.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WeakAurasOptions/OptionsFrames/OptionsFrame.lua b/WeakAurasOptions/OptionsFrames/OptionsFrame.lua index 946ab206c4..39bd0253fa 100644 --- a/WeakAurasOptions/OptionsFrames/OptionsFrame.lua +++ b/WeakAurasOptions/OptionsFrames/OptionsFrame.lua @@ -226,6 +226,7 @@ function OptionsPrivate.CreateFrame() frame.bottomRightResizer = CreateFrameSizer(frame, commitWindowChanges, "BOTTOMRIGHT") frame.UpdateFrameVisible = function(self) + self.tipPopup:Hide() if self.minimized then WeakAurasOptionsTitleText:Hide() self.buttonsContainer.frame:Hide() @@ -386,6 +387,7 @@ function OptionsPrivate.CreateFrame() tipPopup:SetBackdropColor(0, 0, 0, 0.8) --tipPopup:SetHeight(100) tipPopup:Hide() + frame.tipPopup = tipPopup local tipPopupTitle = tipPopup:CreateFontString(nil, "BACKGROUND", "GameFontNormalLarge") tipPopupTitle:SetPoint("TOPLEFT", tipPopup, "TOPLEFT", 10, -10)