This commit is contained in:
Liang Ding 2023-01-08 23:40:32 +08:00
parent 7bd973deca
commit c1c6f435b6
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
7 changed files with 26 additions and 11 deletions

View file

@ -523,7 +523,10 @@ func genTreeID(tree *parse.Tree) {
return
}
var isFullReindexing = false
func FullReindex() {
isFullReindexing = true
util.PushEndlessProgress(Conf.Language(35))
WaitForWritingFiles()
@ -542,6 +545,7 @@ func FullReindex() {
InitFlashcards()
util.PushEndlessProgress(Conf.Language(58))
isFullReindexing = false
go func() {
time.Sleep(1 * time.Second)
util.ReloadUI()