from retail

This commit is contained in:
NoM0Re
2025-01-05 15:08:50 +01:00
parent 95db2e326e
commit 8375cfa0a7
115 changed files with 332 additions and 261 deletions
+3 -3
View File
@@ -58,7 +58,7 @@
bigStep (optional) -> step size of the slider. Defaults to 0.05
step (optional) -> like bigStep, but applies to number input as well
]]
if not WeakAuras.IsCorrectVersion() then return end
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local WeakAuras = WeakAuras
@@ -2001,7 +2001,7 @@ local function addUserModeOption(options, args, data, order, prefix, i)
while i <= #values or i <= #childValues do
if firstChild then
values[i] = childValues[i][nameSource] or conflictBlue .. L["Entry %i"]:format(i)
elseif childValues[i] ~= values[i] then
elseif childValues[i][nameSource] ~= values[i] then
values[i] = conflictBlue .. L["Entry %i"]:format(i)
end
i = i + 1
@@ -2418,7 +2418,7 @@ local function mergeOptions(mergedOptions, data, options, config, prepath, paren
-- check if nextToMerge.nameSource was merged in the same spot as mergedOption.nameSource
local subMergedOption = mergedOption.subOptions[mergedOption.nameSource]
local optionData = subMergedOption.references[data.id]
if not optionData or optionData.optionIndex ~= nextToMerge.nameSource then
if not optionData or optionData.index ~= nextToMerge.nameSource then
-- either an option was not merged at the name source's index, or the wrong option was.
-- in both cases, the name source is conflicted. Fallback to "Entry #" as entry names
mergedOption.nameSource = nil