♻️ Implement some delayed kernel events using task queues https://github.com/siyuan-note/siyuan/issues/12393

This commit is contained in:
Daniel 2024-09-05 18:48:35 +08:00
parent 09eec52a02
commit 653a765b17
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 54 additions and 26 deletions

View file

@ -656,7 +656,7 @@ func checkoutRepo(id string) {
task.AppendTask(task.ReloadUI, util.ReloadUIResetScroll)
if syncEnabled {
task.AppendAsyncTaskWithDelay(task.PushMsg, 3*time.Second, util.PushMsg, Conf.Language(134), 0)
task.AppendAsyncTaskWithDelay(task.PushMsg, 7*time.Second, util.PushMsg, Conf.Language(134), 0)
}
return
}