From 0c06401ec420ab9c6900544ea6beb8736e64ac63 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Sun, 12 Jul 2026 14:14:38 -0500 Subject: [PATCH] Simplify GUI toggle logic --- pfUI.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pfUI.lua b/pfUI.lua index 5aca2f7c..51e06c0f 100644 --- a/pfUI.lua +++ b/pfUI.lua @@ -5,11 +5,7 @@ end SLASH_PFUI1 = '/pfui' function SlashCmdList.PFUI(msg, editbox) - if pfUI.gui:IsShown() then - pfUI.gui:Hide() - else - pfUI.gui:Show() - end + pfUI.gui:SetShown(not pfUI.gui:IsShown()) end SLASH_GM1, SLASH_GM2 = '/gm', '/support'