This commit is contained in:
Daniel 2024-06-27 21:29:31 +08:00
parent c9d3a50fd4
commit ed5c4738f9
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
5 changed files with 38 additions and 22 deletions

View file

@ -429,4 +429,14 @@ func subscribeSQLEvents() {
util.SetBootDetails(msg)
util.ContextPushMsg(context, msg)
})
eventbus.Subscribe(eventbus.EvtSQLIndexChanged, func() {
Conf.DataIndexState = 1
Conf.Save()
})
eventbus.Subscribe(eventbus.EvtSQLIndexFlushed, func() {
Conf.DataIndexState = 0
Conf.Save()
})
}