mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🎨 重建索引以后刷新界面
This commit is contained in:
parent
ae9ba8496f
commit
a6ec16065a
1 changed files with 2 additions and 5 deletions
|
|
@ -510,7 +510,7 @@ func FullReindex() {
|
|||
}
|
||||
|
||||
func fullReindex() {
|
||||
msgId := util.PushMsg(Conf.Language(35), 7*1000)
|
||||
util.PushMsg(Conf.Language(35), 7*1000)
|
||||
WaitForWritingFiles()
|
||||
|
||||
if err := sql.InitDatabase(true); nil != err {
|
||||
|
|
@ -528,10 +528,7 @@ func fullReindex() {
|
|||
treenode.SaveBlockTree(true)
|
||||
LoadFlashcards()
|
||||
debug.FreeOSMemory()
|
||||
go func() {
|
||||
time.Sleep(3 * time.Second)
|
||||
util.PushClearMsg(msgId)
|
||||
}()
|
||||
util.ReloadUI()
|
||||
}
|
||||
|
||||
func ChangeBoxSort(boxIDs []string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue