Toggle bagslots visibility via SetShown

Replace explicit if/else calling :Hide()/:Show() with :SetShown(not IsShown())
This commit is contained in:
Brues
2026-07-31 13:22:17 -05:00
parent 4be680183a
commit c994d00596
+1 -5
View File
@@ -767,11 +767,7 @@ pfUI:RegisterModule("bags", function ()
end)
frame.bags:SetScript("OnClick", function()
if pfUI.bag.right.bagslots:IsShown() then
pfUI.bag.right.bagslots:Hide()
else
pfUI.bag.right.bagslots:Show()
end
pfUI.bag.right.bagslots:SetShown(not pfUI.bag.right.bagslots:IsShown())
end)
end