mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-18 02:30:50 +00:00
unitframes: fix wrong focus display
This commit is contained in:
+1
-2
@@ -25,7 +25,6 @@ for i=1,40 do pfValidUnits["raid" .. i .. "target"] = true end
|
|||||||
for i=1,40 do pfValidUnits["raidpet" .. i .. "target"] = true end
|
for i=1,40 do pfValidUnits["raidpet" .. i .. "target"] = true end
|
||||||
|
|
||||||
function pfUI.uf:UpdateFrameSize()
|
function pfUI.uf:UpdateFrameSize()
|
||||||
local unit = self.label .. self.id
|
|
||||||
local default_border = pfUI_config.appearance.border.default
|
local default_border = pfUI_config.appearance.border.default
|
||||||
if pfUI_config.appearance.border.unitframes ~= "-1" then
|
if pfUI_config.appearance.border.unitframes ~= "-1" then
|
||||||
default_border = pfUI_config.appearance.border.unitframes
|
default_border = pfUI_config.appearance.border.unitframes
|
||||||
@@ -750,7 +749,7 @@ function pfUI.uf:RefreshUnit(unit, component)
|
|||||||
-- hide and return early on unused frames
|
-- hide and return early on unused frames
|
||||||
if not ( pfUI.unlock and pfUI.unlock:IsShown() ) then
|
if not ( pfUI.unlock and pfUI.unlock:IsShown() ) then
|
||||||
-- check existing units or focus frames
|
-- check existing units or focus frames
|
||||||
if unit.unitname then
|
if unit.unitname and unit.unitname ~= "focus" then
|
||||||
unit:Show()
|
unit:Show()
|
||||||
elseif UnitName(unit.label .. unit.id) then
|
elseif UnitName(unit.label .. unit.id) then
|
||||||
-- hide group while in raid and option is set
|
-- hide group while in raid and option is set
|
||||||
|
|||||||
Reference in New Issue
Block a user