🎨 重建索引消息提示

This commit is contained in:
Liang Ding 2023-02-02 23:08:05 +08:00
parent d5158ee9bd
commit af694ad3c1
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -500,7 +500,7 @@ func FullReindex() {
}
func fullReindex() {
util.PushMsg(Conf.Language(35), 7*1000)
msgId := util.PushMsg(Conf.Language(35), 7*1000)
WaitForWritingFiles()
if err := sql.InitDatabase(true); nil != err {
@ -518,6 +518,7 @@ func fullReindex() {
treenode.SaveBlockTree(true)
LoadFlashcards()
runtime.GC()
util.PushClearMsg(msgId)
go func() {
time.Sleep(3 * time.Second)
util.PushStatusBar(Conf.Language(108))