fix
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
_detalhes.BFACORE = 131 --core version on BFA launch
|
||||
_detalhes.SHADOWLANDSCORE = 143 --core version on Shadowlands launch
|
||||
|
||||
_detalhes.dragonflight_beta_version = 19
|
||||
_detalhes.dragonflight_beta_version = 20
|
||||
|
||||
Details = _detalhes
|
||||
|
||||
|
||||
@@ -229,7 +229,7 @@
|
||||
end)
|
||||
|
||||
--> background
|
||||
f.bg1 = f:CreateTexture (nil, "background","BackdropTemplate")
|
||||
f.bg1 = f:CreateTexture (nil, "background")
|
||||
f.bg1:SetTexture ([[Interface\AddOns\Details\images\background]], true)
|
||||
f.bg1:SetAlpha (0.7)
|
||||
f.bg1:SetVertexColor (0.27, 0.27, 0.27)
|
||||
|
||||
@@ -9,14 +9,18 @@ local unpack = _G.unpack
|
||||
--make a namespace for schedules
|
||||
Details.Schedules = {}
|
||||
|
||||
local errorHandler = function(str)
|
||||
return str
|
||||
end
|
||||
|
||||
--run a scheduled function with its payload
|
||||
local triggerScheduledTick = function(tickerObject)
|
||||
local payload = tickerObject.payload
|
||||
local callback = tickerObject.callback
|
||||
|
||||
local result, errortext = pcall (callback, unpack(payload))
|
||||
local result, errortext = xpcall(callback, errorHandler, unpack(payload))
|
||||
if (not result) then
|
||||
Details:Msg("error on scheduler: ", tickerObject.path, tickerObject.name, errortext)
|
||||
Details:Msg("Error:", errortext, tickerObject.name or "")
|
||||
end
|
||||
return result
|
||||
end
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user