mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-31 16:06:57 +00:00
Toggle visibility with SetShown instead of Show/Hide branches
Each if/else that only showed one object in one branch and hid it in the other is now ClassicAPI's SetShown, which shows on any truthy value. 21 sites across 10 modules.
This commit is contained in:
@@ -74,11 +74,7 @@ pfUI:RegisterModule("thirdparty", function()
|
||||
-- show/hide right chatframe
|
||||
if pfUI.chat and C.chat.right.enable == "1" then
|
||||
-- make sure the panel header stays hidden
|
||||
if self.state then
|
||||
pfUI.chat.right.panelTop:Show()
|
||||
else
|
||||
pfUI.chat.right.panelTop:Hide()
|
||||
end
|
||||
pfUI.chat.right.panelTop:SetShown(self.state)
|
||||
|
||||
-- set chat visibility
|
||||
pfUI.chat.right:SetAlpha(self.state and 1 or 0)
|
||||
|
||||
Reference in New Issue
Block a user