fix AL panel button

This commit is contained in:
Spit
2025-10-14 09:54:42 +03:00
parent ffc15ee96e
commit 6e588bf150
+4 -14
View File
@@ -661,23 +661,13 @@
this:SetText(AL["AL Panel"]); this:SetText(AL["AL Panel"]);
</OnShow> </OnShow>
<OnClick> <OnClick>
if AtlasLootCharDB.HidePanel then if AtlasLootPanel:IsShown() then
AtlasLootCharDB.HidePanel = false; AtlasLootPanel:Hide()
if (AtlasFrame) then
if AtlasFrame:IsVisible() then
AtlasLootPanel:Show();
end
end
else else
AtlasLootCharDB.HidePanel = true; AtlasLootPanel:Show()
if (AtlasFrame) then
if AtlasFrame:IsVisible() then
AtlasLootPanel:Hide();
end
end
end end
AtlasLootCharDB.HidePanel = not AtlasLootPanel:IsShown()
AtlasLootOptionsFrameHidePanel:SetChecked(AtlasLootCharDB.HidePanel); AtlasLootOptionsFrameHidePanel:SetChecked(AtlasLootCharDB.HidePanel);
AtlasLoot_SetupForAtlas();
</OnClick> </OnClick>
</Scripts> </Scripts>
</Button> </Button>