mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🎨 tree not found
appears when rebuilding index https://github.com/siyuan-note/siyuan/issues/11036
This commit is contained in:
parent
1ae39777a6
commit
16c665bfa7
4 changed files with 16 additions and 12 deletions
|
@ -115,17 +115,13 @@ var uniqueActions = []string{
|
|||
AssetContentDatabaseIndexCommit,
|
||||
}
|
||||
|
||||
func Contain(action string, moreActions ...string) bool {
|
||||
actions := append(moreActions, action)
|
||||
actions = gulu.Str.RemoveDuplicatedElem(actions)
|
||||
|
||||
queueLock.Lock()
|
||||
for _, task := range taskQueue {
|
||||
if gulu.Str.Contains(task.Action, actions) {
|
||||
func ContainIndexTask() bool {
|
||||
actions := getCurrentActions()
|
||||
for _, action := range actions {
|
||||
if gulu.Str.Contains(action, []string{DatabaseIndexFull, DatabaseIndex}) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
queueLock.Unlock()
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue