Skip to content

Commit

Permalink
fix: make config.timer.reset_on_idle reset idle status on both entr…
Browse files Browse the repository at this point in the history
…y and exit
  • Loading branch information
vyfor committed Nov 17, 2024
1 parent c0d1dd1 commit 5df8ca2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lua/cord.lua
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,13 @@ local function update_presence(config)
if should_update_presence(current_presence) then
force_idle = false
last_updated = uv.now()
if config.display.show_time and config.timer.reset_on_change then
if
config.display.show_time
and (
config.timer.reset_on_change
or config.timer.reset_on_idle and last_presence and last_presence.idle
)
then
discord.update_time()
end
local cursor_pos = config.display.show_cursor_position
Expand Down

0 comments on commit 5df8ca2

Please sign in to comment.