(fix): fix possibility of multiple idle timers (#1042)
This change ensures that `org-roam--file-update-timer` has only one instance per Emacs instance. Fixes #1037
This commit is contained in:
parent
2081e1268a
commit
9ee591f7a4
1 changed files with 2 additions and 1 deletions
|
@ -1590,7 +1590,8 @@ M-x info for more information at Org-roam > Installation > Post-Installation Tas
|
|||
(add-hook 'kill-emacs-hook #'org-roam-db--close-all)
|
||||
(add-hook 'org-open-at-point-functions #'org-roam-open-id-at-point)
|
||||
(add-hook 'org-open-link-functions #'org-roam--open-fuzzy-link)
|
||||
(setq org-roam--file-update-timer (run-with-idle-timer 2 t #'org-roam--process-update-queue))
|
||||
(unless org-roam--file-update-timer
|
||||
(setq org-roam--file-update-timer (run-with-idle-timer 2 t #'org-roam--process-update-queue)))
|
||||
(advice-add 'rename-file :after #'org-roam--rename-file-advice)
|
||||
(advice-add 'delete-file :before #'org-roam--delete-file-advice)
|
||||
(when (fboundp 'org-link-set-parameters)
|
||||
|
|
Loading…
Reference in a new issue