mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 13:58:49 +01:00
🎨 Improve boot index checking https://github.com/siyuan-note/siyuan/issues/11842
This commit is contained in:
parent
c9d3a50fd4
commit
ed5c4738f9
5 changed files with 38 additions and 22 deletions
|
|
@ -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()
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue