Skip to content

Commit

Permalink
improvements to background tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
emptyrivers authored and InfusOnWoW committed Sep 12, 2024
1 parent 7e1046f commit 01a979e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion WeakAuras/WeakAuras.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4420,7 +4420,8 @@ do
ok, val1, val2 = coroutine.resume(threadData.thread)
if not ok then
geterrorhandler()(val1 .. '\n' .. debugstack(threadData.thread))
elseif coroutine.status(threadData.thread) ~= "dead" then
end
if coroutine.status(threadData.thread) ~= "dead" then
estimates[name] = type(val1) == "number" and val1 or defaultEstimate
local sequence = val2 or "" --[[@as string]]
threadData.sequence[sequence] = (threadData.sequence[sequence] or 0) + 1
Expand Down
2 changes: 2 additions & 0 deletions WeakAurasOptions/WeakAurasOptions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -726,9 +726,11 @@ local function LayoutDisplayButtons(msg)
for id, button in pairs(displayButtons) do
if OptionsPrivate.Private.loaded[id] then
button:PriorityShow(1);
coroutine.yield()
end
end
OptionsPrivate.Private.OptionsFrame().loadedButton:RecheckVisibility()
coroutine.yield()
end
OptionsPrivate.Private.ResumeAllDynamicGroups(suspended)

Expand Down

0 comments on commit 01a979e

Please sign in to comment.