Skip to content

Commit

Permalink
Not using table in GUI for group filter
Browse files Browse the repository at this point in the history
  • Loading branch information
d87 committed Dec 18, 2020
1 parent 07fb7c8 commit 9b31260
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Options/ProfileSettings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,7 @@ function ns.MakeProfileSettings()
type = "range",
get = function(info) return Aptechka:GetMaxGroupEnabled() end,
set = function(info, v)
local filters = {1, 3, 7, 15, 31, 63, 127, 255}
Aptechka.db.profile.groupFilter = filters[v] or 255
Aptechka.db.profile.groupFilter = math.pow(2, v) - 1
Aptechka:Reconfigure()
end,
min = 1,
Expand Down

0 comments on commit 9b31260

Please sign in to comment.