This commit is contained in:
Liang Ding 2023-02-16 18:42:19 +08:00
parent 4d8b826e29
commit f581b34ea8
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
14 changed files with 196 additions and 56 deletions

View file

@ -286,4 +286,16 @@ func init() {
util.SetBootDetails(msg)
util.ContextPushMsg(context, msg)
})
eventbus.Subscribe(eventbus.EvtSQLInsertHistory, func(context map[string]interface{}) {
if util.ContainerAndroid == util.Container || util.ContainerIOS == util.Container {
return
}
current := context["current"].(int) + 1
total := context["total"]
msg := fmt.Sprintf(Conf.Language(191), current, total)
util.SetBootDetails(msg)
util.ContextPushMsg(context, msg)
})
}