From ea472050bf324831eaeaa66c8f794afd81d7fdc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20H=C3=BCskes?= Date: Sun, 27 Nov 2022 23:16:56 +0100 Subject: [PATCH] Fix taint when closing SettingsPanel --- Libs/zzLDB/zzLDB.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Libs/zzLDB/zzLDB.lua b/Libs/zzLDB/zzLDB.lua index 8c8cada..9639a17 100755 --- a/Libs/zzLDB/zzLDB.lua +++ b/Libs/zzLDB/zzLDB.lua @@ -1,4 +1,4 @@ -local lib = LibStub:NewLibrary("zzLDB", 5) +local lib = LibStub:NewLibrary("zzLDB", 6) if not lib then return end local ldb = LibStub:GetLibrary("LibDataBroker-1.1") local ldbicon = LibStub:GetLibrary("LibDBIcon-1.0") @@ -25,7 +25,8 @@ function lib:DefaultOnClick(_, button, addon, childName) if(not InCombatLockdown()) then if(SettingsPanel) then if(SettingsPanel:IsVisible()) then - SettingsPanel:Hide() + HideUIPanel(SettingsPanel) + HideUIPanel(GameMenuFrame) else Settings.OpenToCategory(childName) end