From 6e588bf150a6e0325319f20af2ef152f1893836e Mon Sep 17 00:00:00 2001 From: Spit <19otari98@gmail.com> Date: Tue, 14 Oct 2025 09:54:42 +0300 Subject: [PATCH] fix AL panel button --- Core/AtlasLoot.xml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/Core/AtlasLoot.xml b/Core/AtlasLoot.xml index 9bac5c0..e0499c0 100644 --- a/Core/AtlasLoot.xml +++ b/Core/AtlasLoot.xml @@ -661,23 +661,13 @@ this:SetText(AL["AL Panel"]); - if AtlasLootCharDB.HidePanel then - AtlasLootCharDB.HidePanel = false; - if (AtlasFrame) then - if AtlasFrame:IsVisible() then - AtlasLootPanel:Show(); - end - end + if AtlasLootPanel:IsShown() then + AtlasLootPanel:Hide() else - AtlasLootCharDB.HidePanel = true; - if (AtlasFrame) then - if AtlasFrame:IsVisible() then - AtlasLootPanel:Hide(); - end - end + AtlasLootPanel:Show() end + AtlasLootCharDB.HidePanel = not AtlasLootPanel:IsShown() AtlasLootOptionsFrameHidePanel:SetChecked(AtlasLootCharDB.HidePanel); - AtlasLoot_SetupForAtlas();