Skip to content

Commit

Permalink
Fix #772
Browse files Browse the repository at this point in the history
  • Loading branch information
Aviana committed Nov 23, 2020
1 parent 8004ed0 commit 71e1c1d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 3 additions & 4 deletions LunaUnitFrames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1123,6 +1123,7 @@ local function SetHeaderAttributes(header, config)
header:SetAttribute("yMod", yMod)
header:SetAttribute("sortMethod", config.sortMethod)
header:SetAttribute("sortDir", config.sortOrder)
header:SetAttribute("roleFilter", config.roleFilter)
header:SetAttribute("x-height", config.height)
header:SetAttribute("x-width", config.width)
header:SetAttribute("x-scale", config.scale)
Expand Down Expand Up @@ -1156,10 +1157,8 @@ local function SetHeaderAttributes(header, config)
num = num + 1
frame = _G[ButtonName .. num]
end
if header:IsShown() then
header:Hide() -- trigger refresh
header:Show()
end
header:Hide() -- trigger refresh
header:Show()

if not LUF.db.profile.locked then
LUF:UpdateMovers()
Expand Down
6 changes: 6 additions & 0 deletions modules/defaults.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2086,6 +2086,7 @@ function LUF:LoadDefaults()
sortMethod = "INDEX",
sortOrder = "ASC",
unitsPerColumn = 5,
roleFilter = "MAINTANK",
showParty = false,
showRaid = true,
showSolo = false,
Expand Down Expand Up @@ -2236,6 +2237,7 @@ function LUF:LoadDefaults()
anchorTo = "LUFHeadermaintank",
sortMethod = "INDEX",
sortOrder = "ASC",
roleFilter = "MAINTANK",
showParty = false,
showRaid = true,
showSolo = false,
Expand Down Expand Up @@ -2386,6 +2388,7 @@ function LUF:LoadDefaults()
anchorTo = "LUFHeadermaintanktarget",
sortMethod = "INDEX",
sortOrder = "ASC",
roleFilter = "MAINTANK",
showParty = false,
showRaid = true,
showSolo = false,
Expand Down Expand Up @@ -2553,6 +2556,7 @@ function LUF:LoadDefaults()
sortMethod = "INDEX",
sortOrder = "ASC",
unitsPerColumn = 5,
roleFilter = "MAINASSIST",
showParty = false,
showRaid = true,
showSolo = false,
Expand Down Expand Up @@ -2703,6 +2707,7 @@ function LUF:LoadDefaults()
anchorTo = "LUFHeadermainassist",
sortMethod = "INDEX",
sortOrder = "ASC",
roleFilter = "MAINASSIST",
showParty = false,
showRaid = true,
showSolo = false,
Expand Down Expand Up @@ -2853,6 +2858,7 @@ function LUF:LoadDefaults()
anchorTo = "LUFHeadermainassisttarget",
sortMethod = "INDEX",
sortOrder = "ASC",
roleFilter = "MAINASSIST",
showParty = false,
showRaid = true,
showSolo = false,
Expand Down

0 comments on commit 71e1c1d

Please sign in to comment.