Replace saved-handler wrappers with HookScript; use intrinsic pre/postcall bindings for barbershop and SetHighlight

This commit is contained in:
Brues
2026-10-31 19:47:41 -05:00
parent b2e89b461c
commit 14a26b8301
7 changed files with 14 additions and 47 deletions
+2 -6
View File
@@ -258,9 +258,7 @@ pfUI.marktracking = CreateFrame("Frame", "pfMarkTracking", UIParent)
-- Unlock mode: show fixed 1-row placeholder so positioning works correctly
if pfUI.unlock then
local origShow = pfUI.unlock:GetScript("OnShow")
pfUI.unlock:SetScript("OnShow", function()
if origShow then origShow() end
pfUI.unlock:HookScript("OnShow", function()
isUnlocked = true
-- hide all rows, show container at 1-row height as drag handle
for i = 1, 8 do
@@ -270,9 +268,7 @@ pfUI.marktracking = CreateFrame("Frame", "pfMarkTracking", UIParent)
pfUI.marktracking:Show()
end)
local origHide = pfUI.unlock:GetScript("OnHide")
pfUI.unlock:SetScript("OnHide", function()
if origHide then origHide() end
pfUI.unlock:HookScript("OnHide", function()
isUnlocked = false
UpdateDisplay()
end)