(fix)Resolve Overlay issues finally
This commit is contained in:
@@ -470,7 +470,7 @@ local function RunOverlayFuncs(event, state, id, errorHandler)
|
||||
local additionalProgress = state.additionalProgress[i];
|
||||
local ok, a, b, c = pcall(overlayFunc, event.trigger, state);
|
||||
if (not ok) then
|
||||
(errorHandler or Private.GetErrorHandlerId(id, L["Overlay %s"]:format(i)))(a)
|
||||
if errorHandler then errorHandler(a) else Private.GetErrorHandlerId(id, L["Overlay %s"]:format(i)) end
|
||||
additionalProgress.min = nil;
|
||||
additionalProgress.max = nil;
|
||||
additionalProgress.direction = nil;
|
||||
|
||||
@@ -541,7 +541,7 @@ local function UpdateProgressFromState(self, minMaxConfig, state, progressSource
|
||||
end
|
||||
|
||||
local autoTimedProgressSource = {-1, "timer", "expirationTime", "duration", "inverse", "paused", "remaining", true}
|
||||
local autoStaticProgressSource = {-1, "number", "value", "total", nil, nil, nil, nil, true}
|
||||
local autoStaticProgressSource = {-1, "number", "value", "total", nil, nil, nil, true}
|
||||
local function UpdateProgressFromAuto(self, minMaxConfig, state)
|
||||
if state.progressType == "timed" then
|
||||
UpdateProgressFromState(self, minMaxConfig, state, autoTimedProgressSource)
|
||||
|
||||
Reference in New Issue
Block a user