Refactor progress handling
probably some regressions
This commit is contained in:
@@ -143,18 +143,6 @@ function OptionsPrivate.GetAnimationOptions(data)
|
||||
values = function() return filterAnimPresetTypes(anim_start_preset_types, id) end,
|
||||
hidden = function() return data.animation.start.type ~= "preset" end
|
||||
},
|
||||
start_duration_type_no_choice = {
|
||||
type = "select",
|
||||
width = WeakAuras.halfWidth,
|
||||
name = L["Time in"],
|
||||
order = 33,
|
||||
values = duration_types_no_choice,
|
||||
disabled = true,
|
||||
hidden = function()
|
||||
return data.animation.start.type ~= "custom" or OptionsPrivate.Private.CanHaveDuration(data)
|
||||
end,
|
||||
get = function() return "seconds" end
|
||||
},
|
||||
start_duration_type = {
|
||||
type = "select",
|
||||
width = WeakAuras.halfWidth,
|
||||
@@ -162,7 +150,7 @@ function OptionsPrivate.GetAnimationOptions(data)
|
||||
order = 33,
|
||||
values = duration_types,
|
||||
hidden = function()
|
||||
return data.animation.start.type ~= "custom" or not OptionsPrivate.Private.CanHaveDuration(data)
|
||||
return data.animation.start.type ~= "custom"
|
||||
end
|
||||
},
|
||||
start_duration = {
|
||||
@@ -418,18 +406,6 @@ function OptionsPrivate.GetAnimationOptions(data)
|
||||
values = function() return filterAnimPresetTypes(anim_main_preset_types, id) end,
|
||||
hidden = function() return data.animation.main.type ~= "preset" end
|
||||
},
|
||||
main_duration_type_no_choice = {
|
||||
type = "select",
|
||||
width = WeakAuras.halfWidth,
|
||||
name = L["Time in"],
|
||||
order = 53,
|
||||
values = duration_types_no_choice,
|
||||
disabled = true,
|
||||
hidden = function()
|
||||
return data.animation.main.type ~= "custom" or OptionsPrivate.Private.CanHaveDuration(data)
|
||||
end,
|
||||
get = function() return "seconds" end
|
||||
},
|
||||
main_duration_type = {
|
||||
type = "select",
|
||||
width = WeakAuras.halfWidth,
|
||||
@@ -437,7 +413,7 @@ function OptionsPrivate.GetAnimationOptions(data)
|
||||
order = 53,
|
||||
values = duration_types,
|
||||
hidden = function()
|
||||
return data.animation.main.type ~= "custom" or not OptionsPrivate.Private.CanHaveDuration(data)
|
||||
return data.animation.main.type ~= "custom"
|
||||
end
|
||||
},
|
||||
main_duration = {
|
||||
|
||||
Reference in New Issue
Block a user