(fix/Transmission): prevent missing controlledChildren when importing newer groups without their original parent

(cherry picked from commit a8df20ae1f374069d792990fe096e0b788fc0c1c)
This commit is contained in:
NoM0Re
2026-02-14 18:27:24 +01:00
committed by andrew6180
parent a9140e9b9e
commit d494eab111
3 changed files with 45 additions and 30 deletions
+3 -2
View File
@@ -541,7 +541,8 @@ function WeakAuras.Import(inData, target, callbackFunc, linkedAuras)
return nil, "Invalid import data."
end
local highestVersion = data.internalVersion or 0
-- Let people install auras that are newer than their version of WeakAuras, even tho it is bad
--[[local highestVersion = data.internalVersion or 0
if children then
for _, child in ipairs(children) do
highestVersion = max(highestVersion, child.internalVersion or 0)
@@ -551,7 +552,7 @@ function WeakAuras.Import(inData, target, callbackFunc, linkedAuras)
-- Do not run PreAdd but still show Import Window
tooltipLoading = nil;
return ImportNow(data, children, target, linkedAuras, nil, callbackFunc)
end
end]]
if version < 2000 then
if children then