Skip to content

Commit

Permalink
Tweak Default Collapse setting on display tab
Browse files Browse the repository at this point in the history
* Set Progress Source settings to default collapsed, it's usually not something
  people will want to touch.
* Set Position settings to default collapsed. This is a bit more
  controversial, but imho most editing of auras does not involve those.
* Set Sub Element settings to default collapsed.
  • Loading branch information
InfusOnWoW committed Oct 3, 2024
1 parent 6e5f89e commit 514f3b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions WeakAurasOptions/CommonOptions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,7 @@ local function ProgressOptions(data)
local options = {
__title = L["Progress Settings"],
__order = 98,
__collapsed = true
}

options.progressSource = {
Expand Down Expand Up @@ -1244,6 +1245,7 @@ local function PositionOptions(id, data, _, hideWidthHeight, disableSelfPoint, g
local positionOptions = {
__title = L["Position Settings"],
__order = metaOrder,
__collapsed = true,
width = {
type = "range",
control = "WeakAurasSpinBox",
Expand Down
1 change: 1 addition & 0 deletions WeakAurasOptions/DisplayOptions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ function OptionsPrivate.GetDisplayOptions(data)
subIndex[subRegionType] = subIndex[subRegionType] and subIndex[subRegionType] + 1 or 1
local options, common = OptionsPrivate.Private.subRegionOptions[subRegionType].create(data, subRegionData, index, subIndex[subRegionType])
options.__order = 200 + index
options.__collapsed = true
regionOption["sub." .. index .. "." .. subRegionType] = options
commonOption[subRegionType] = common
end
Expand Down

0 comments on commit 514f3b4

Please sign in to comment.