🐛 Pandoc is not initialized in some cases Fix https://github.com/siyuan-note/siyuan/issues/8533

This commit is contained in:
Daniel 2023-06-15 10:15:13 +08:00
parent e93c62e49f
commit a515a4f992
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
7 changed files with 33 additions and 5 deletions

View file

@ -57,7 +57,7 @@ import (
)
func init() {
subscribeEvents()
subscribeRepoEvents()
}
type Snapshot struct {
@ -1476,7 +1476,7 @@ func newRepository() (ret *dejavu.Repo, err error) {
return
}
func subscribeEvents() {
func subscribeRepoEvents() {
eventbus.Subscribe(eventbus.EvtIndexBeforeWalkData, func(context map[string]interface{}, path string) {
msg := fmt.Sprintf(Conf.Language(158), path)
util.SetBootDetails(msg)