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:
parent
c6e4ffb929
commit
6330c57bce
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue