from retail
This commit is contained in:
@@ -91,6 +91,35 @@ function OptionsPrivate.GetInformationOptions(data)
|
||||
}
|
||||
order = order + 1
|
||||
end
|
||||
if OptionsPrivate.HasWagoUrl(data.id) then
|
||||
args.ignoreWagoUpdate = {
|
||||
type = "toggle",
|
||||
name = L["Ignore Wago updates"],
|
||||
desc = OptionsPrivate.IsWagoUpdateIgnored(data.id) and L["Do you want to enable updates for this aura"] or L["Do you want to ignore updates for this aura"],
|
||||
width = WeakAuras.doubleWidth,
|
||||
get = function() return OptionsPrivate.IsWagoUpdateIgnored(data.id) end,
|
||||
set = function(info, v)
|
||||
local auraData = WeakAuras.GetData(data.id)
|
||||
if auraData then
|
||||
local ignoreUpdate
|
||||
if OptionsPrivate.IsWagoUpdateIgnored(data.id) then
|
||||
ignoreUpdate = nil
|
||||
else
|
||||
ignoreUpdate = true
|
||||
end
|
||||
for child in OptionsPrivate.Private.TraverseAll(auraData) do
|
||||
child.ignoreWagoUpdate = ignoreUpdate
|
||||
OptionsPrivate.ClearOptions(child.id)
|
||||
end
|
||||
WeakAuras.ClearAndUpdateOptions(data.id)
|
||||
end
|
||||
OptionsPrivate.SortDisplayButtons(nil, true)
|
||||
|
||||
end,
|
||||
order = order
|
||||
}
|
||||
order = order + 1
|
||||
end
|
||||
|
||||
|
||||
-- Description
|
||||
|
||||
Reference in New Issue
Block a user