mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-22 07:36:56 +00:00
Toggle bagslots visibility via SetShown
Replace explicit if/else calling :Hide()/:Show() with :SetShown(not IsShown())
This commit is contained in:
+1
-5
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user