some fixes for unitframes shown if pfui unitframes are active.

This commit is contained in:
Meow
2026-03-21 21:13:55 +01:00
parent ed6904f021
commit b0b5a69a36
+12
View File
@@ -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 = {}