From b0b5a69a36e7484c973d431233cbb5a99cff7bdd Mon Sep 17 00:00:00 2001 From: Meow <30401521+me0wg4ming@users.noreply.github.com> Date: Sat, 21 Mar 2026 21:13:55 +0100 Subject: [PATCH] some fixes for unitframes shown if pfui unitframes are active. --- skins/blizzard/barbershop.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/skins/blizzard/barbershop.lua b/skins/blizzard/barbershop.lua index 1bdf1395..1a4ebdc6 100644 --- a/skins/blizzard/barbershop.lua +++ b/skins/blizzard/barbershop.lua @@ -46,6 +46,18 @@ pfUI:RegisterSkin("Barbershop", "vanilla", function () SkinButton(BarbershopFrameCancelButton) SkinButton(BarbershopFrameResetButton) + -- Turtle WoW's Barbershop calls PlayerFrame:Show() and TargetFrame:Show() + -- on open/close. pfUI manages its own frames so we noop those calls. + if C.unitframes.disable ~= "1" then + if PlayerFrame then + PlayerFrame:Hide() + PlayerFrame.Show = function() return end + end + if TargetFrame then + TargetFrame.Show = function() return end + end + end + -- Fix: disable TargetFrameDebuff OnEnter scripts while barbershop is open -- to prevent SetUnitDebuff crash (TargetFrame is hidden but scripts remain active) local savedOnEnter = {}