Sniff for a different symbol in +org-roam-suppress-sqlite-build-a

`org-roam-db-location` is redefined in the :preface section, so we need
to rely on a different symbol to determine whether `org-roam` is loading
or not.
This commit is contained in:
Wetlize 2021-07-24 18:59:46 +03:00
parent c6e4ffb929
commit 6330c57bce

View file

@ -35,7 +35,7 @@ This is a blocking operation that can take a while to complete
and better be deferred when there will be an actual demand for and better be deferred when there will be an actual demand for
the database. See `+org-init-roam-h' for the launch process." the database. See `+org-init-roam-h' for the launch process."
:around #'emacsql-sqlite-ensure-binary :around #'emacsql-sqlite-ensure-binary
(if (not (boundp 'org-roam-db-location)) (if (not (boundp 'org-roam-db-version))
(apply orig-fn args) (apply orig-fn args)
(advice-remove #'emacsql-sqlite-ensure-binary #'+org-roam-suppress-sqlite-build-a) (advice-remove #'emacsql-sqlite-ensure-binary #'+org-roam-suppress-sqlite-build-a)
nil)) nil))