Skip to content

Commit

Permalink
better cnd for sizing check
Browse files Browse the repository at this point in the history
  • Loading branch information
Krealle committed Sep 15, 2024
1 parent 004f063 commit 9701f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UnitFrames/UnitButton.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function U:UpdateUnitButtonLayout(unit, kind, button)
local layout = CUF.DB.CurrentLayoutTable()

-- Size
if not kind or strfind(kind, "size$") and not button.__customSize then
if (not kind or strfind(kind, "size$")) and not button.__customSize then
local width, height
if layout[unit].sameSizeAsPlayer then
width, height = unpack(layout[const.UNIT.PLAYER].size)
Expand Down

0 comments on commit 9701f5f

Please sign in to comment.