Skip to content

Commit 29cfa7a

Browse files
authored
bugfix: pass onSuccess argument to retry of getWinStackIdxs (#60)
1 parent 8c1533e commit 29cfa7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stackline/query.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function Query:getWinStackIdxs(onSuccess) -- {{{
1212
if ok then
1313
onSuccess(json)
1414
else -- try again
15-
hs.timer.doAfter(1, function() self:getWinStackIdxs() end)
15+
hs.timer.doAfter(1, function() self:getWinStackIdxs(onSuccess) end)
1616
end
1717
end, {c.paths.getStackIdxs, c.paths.yabai, c.paths.jq}):start()
1818
end -- }}}

0 commit comments

Comments
 (0)