(fix)Resolve Overlay issues finally

This commit is contained in:
NoM0Re
2025-03-12 15:20:52 +01:00
parent 73697d4f66
commit bbf9cb14ae
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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)