mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-04 01:09:31 +08:00
🎨 Improve indexing completeness when exiting https://github.com/siyuan-note/siyuan/issues/12039
This commit is contained in:
parent
0ea759953e
commit
8646bb0b10
@ -610,6 +610,9 @@ func Close(force, setCurrentWorkspace bool, execInstallPkg int) (exitCode int) {
|
|||||||
// Close the user guide when exiting https://github.com/siyuan-note/siyuan/issues/10322
|
// Close the user guide when exiting https://github.com/siyuan-note/siyuan/issues/10322
|
||||||
closeUserGuide()
|
closeUserGuide()
|
||||||
|
|
||||||
|
// Improve indexing completeness when exiting https://github.com/siyuan-note/siyuan/issues/12039
|
||||||
|
sql.WaitForWritingDatabase()
|
||||||
|
|
||||||
util.IsExiting.Store(true)
|
util.IsExiting.Store(true)
|
||||||
waitSecondForExecInstallPkg := false
|
waitSecondForExecInstallPkg := false
|
||||||
if !skipNewVerInstallPkg() {
|
if !skipNewVerInstallPkg() {
|
||||||
@ -1083,8 +1086,6 @@ func closeUserGuide() {
|
|||||||
logging.LogErrorf("remove corrupted user guide box [%s] failed: %s", boxDirPath, removeErr)
|
logging.LogErrorf("remove corrupted user guide box [%s] failed: %s", boxDirPath, removeErr)
|
||||||
}
|
}
|
||||||
|
|
||||||
sql.WaitForWritingDatabase()
|
|
||||||
|
|
||||||
util.PushClearMsg(msgId)
|
util.PushClearMsg(msgId)
|
||||||
logging.LogInfof("closed user guide box [%s]", boxID)
|
logging.LogInfof("closed user guide box [%s]", boxID)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user