small improvements

This commit is contained in:
NoM0Re
2025-06-28 16:13:24 +02:00
parent 3bdc6512b7
commit fec17c0f2f
2 changed files with 6 additions and 5 deletions
+5 -5
View File
@@ -339,10 +339,10 @@ local sorters = {
Private.ActivateAuraEnvironment(data.id) Private.ActivateAuraEnvironment(data.id)
local ok, result = pcall(sortFunc, a, b) local ok, result = pcall(sortFunc, a, b)
Private.ActivateAuraEnvironment() Private.ActivateAuraEnvironment()
if not ok then if ok then
Private.GetErrorHandlerId(data.id, L["Custom Sort"])
else
return result return result
else
Private.GetErrorHandlerId(data.id, L["Custom Sort"])
end end
end, sortOn end, sortOn
end end
@@ -428,7 +428,7 @@ local anchorers = {
return function(frames, activeRegions) return function(frames, activeRegions)
Private.ActivateAuraEnvironment(data.id) Private.ActivateAuraEnvironment(data.id)
local ok, ret = pcall(anchorFunc, frames, activeRegions) local ok = pcall(anchorFunc, frames, activeRegions)
if not ok then if not ok then
Private.GetErrorHandlerUid(data.uid, L["Custom Anchor"]) Private.GetErrorHandlerUid(data.uid, L["Custom Anchor"])
end end
@@ -982,7 +982,7 @@ local growers = {
end end
return function(newPositions, activeRegions) return function(newPositions, activeRegions)
Private.ActivateAuraEnvironment(data.id) Private.ActivateAuraEnvironment(data.id)
local ok, ret = pcall(growFunc, newPositions, activeRegions) local ok = pcall(growFunc, newPositions, activeRegions)
Private.ActivateAuraEnvironment() Private.ActivateAuraEnvironment()
if not ok then if not ok then
Private.GetErrorHandlerId(data.id, L["Custom Grow"]) Private.GetErrorHandlerId(data.id, L["Custom Grow"])
+1
View File
@@ -1155,6 +1155,7 @@ function Private.Login(takeNewSnapshots)
Private.AddMany(toAdd, takeNewSnapshots); Private.AddMany(toAdd, takeNewSnapshots);
coroutine.yield(1000); coroutine.yield(1000);
coroutine.yield(1000);
Private.RegisterLoadEvents(); Private.RegisterLoadEvents();
coroutine.yield(10000); coroutine.yield(10000);
Private.Resume(); Private.Resume();