Skip to content

Commit

Permalink
Removed hs.canvas:delete() from hs.alert
Browse files Browse the repository at this point in the history
- Closes #3168
  • Loading branch information
latenitefilms authored and cmsj committed Mar 28, 2022
1 parent 7fc6eef commit 58f9773
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extensions/alert/alert.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ local purgeAlert = function(UUID, duration)
for i2,v2 in ipairs(v.drawings) do
v2:hide(duration)
if duration > 0.0 then
timer.doAfter(duration, function() v2:delete() end)
timer.doAfter(duration, function()
v2:hide()
v2 = nil
end)
end
v.drawings[i2] = nil
end
Expand Down

0 comments on commit 58f9773

Please sign in to comment.