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();