Skip to content

Commit

Permalink
fixes AClock spoon #293 (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacix committed Apr 7, 2023
1 parent 8716422 commit 3a67dde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/AClock.spoon/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ function obj:hide()
-- hotkey first, if anything goes wrong we don't want the hotkey stuck
self.canvas:hide()
if self.tick_timer then self.tick_timer:stop(); self.tick_timer = nil end
if self.show_timer then self.show_timer:stop(); self.show_timer = nil end
end

--- AClock:toggleShow()
Expand All @@ -146,7 +147,6 @@ function obj:toggleShow()
self:show()
self.show_timer = hs.timer.doAfter(self.showDuration, function()
self:hide()
self.show_timer = nil
end)
end
end
Expand Down

0 comments on commit 3a67dde

Please sign in to comment.