🎨 重建索引以后刷新界面

This commit is contained in:
Liang Ding 2023-02-05 17:58:25 +08:00
parent ae9ba8496f
commit a6ec16065a
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -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) {