|
@@ -38,6 +38,7 @@ import (
|
|
|
"github.com/siyuan-note/siyuan/kernel/conf"
|
|
|
"github.com/siyuan-note/siyuan/kernel/search"
|
|
|
"github.com/siyuan-note/siyuan/kernel/sql"
|
|
|
+ "github.com/siyuan-note/siyuan/kernel/task"
|
|
|
"github.com/siyuan-note/siyuan/kernel/treenode"
|
|
|
"github.com/siyuan-note/siyuan/kernel/util"
|
|
|
)
|
|
@@ -48,7 +49,7 @@ func AutoGenerateDocHistory() {
|
|
|
ChangeHistoryTick(Conf.Editor.GenerateHistoryInterval)
|
|
|
for {
|
|
|
<-historyTicker.C
|
|
|
- generateDocHistory()
|
|
|
+ task.PrependTask(task.HistoryGenerateDoc, generateDocHistory)
|
|
|
}
|
|
|
}
|
|
|
|