bugfix - auto-update even when clocked out

Without this, if you 'resumed' the last project by deleting the
clock-out event from the file, the buffer woudn't be updated to
reflect it.
This commit is contained in:
Kashish Sharma 2018-09-25 20:16:40 +05:30
parent 284902e70c
commit 98d108a335
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@
;; ## TIMER ##
(defun chronometrist-timer ()
(let ((buffer-window (get-buffer-window chronometrist-buffer-name t)))
(when (and buffer-window (chronometrist-current-project))
(when buffer-window
(with-current-buffer chronometrist-buffer-name
(let ((position (window-point buffer-window)))
(chronometrist-refresh)