mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🎨 Supports local shorthands on Android https://github.com/siyuan-note/siyuan/issues/14414
This commit is contained in:
parent
fde9cbe1cc
commit
fc43a81286
2 changed files with 5 additions and 1 deletions
|
@ -69,6 +69,8 @@ func moveLocalShorthands(c *gin.Context) {
|
|||
hPath = path.Join(dir, baseName)
|
||||
}
|
||||
|
||||
// TODO: 改造旧方案,去掉 hPath, parentID,改为使用文档树配置项 闪念速记存放位置,参考创建日记实现
|
||||
// https://github.com/siyuan-note/siyuan/issues/14414
|
||||
ids, err := model.MoveLocalShorthands(notebook, hPath, parentID)
|
||||
if err != nil {
|
||||
ret.Code = -1
|
||||
|
|
|
@ -44,7 +44,9 @@ func StartCron() {
|
|||
go every(30*time.Second, model.HookDesktopUIProcJob)
|
||||
go every(24*time.Hour, model.AutoPurgeRepoJob)
|
||||
go every(30*time.Minute, model.AutoCheckMicrosoftDefender)
|
||||
go every(3*time.Second, model.WatchLocalShorthands)
|
||||
|
||||
// TODO: 移除旧方案 https://github.com/siyuan-note/siyuan/issues/14414 实现新的刷新机制
|
||||
//go every(3*time.Second, model.WatchLocalShorthands)
|
||||
}
|
||||
|
||||
func every(interval time.Duration, f func()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue