🎨 编辑器启用只读模式时启动后提示用户 Fix https://github.com/siyuan-note/siyuan/issues/7700

This commit is contained in:
Liang Ding 2023-03-18 17:38:41 +08:00
parent 29577de910
commit c9ad6dd943
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
6 changed files with 20 additions and 5 deletions

View file

@ -164,6 +164,16 @@ func getConf(c *gin.Context) {
if start {
start = false
if model.Conf.Editor.ReadOnly {
// 编辑器启用只读模式时启动后提示用户 https://github.com/siyuan-note/siyuan/issues/7700
go func() {
time.Sleep(time.Second * 5)
if model.Conf.Editor.ReadOnly {
util.PushMsg(model.Conf.Language(197), 7000)
}
}()
}
}
}