mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 编辑器启用只读模式时启动后提示用户 Fix https://github.com/siyuan-note/siyuan/issues/7700
This commit is contained in:
parent
29577de910
commit
c9ad6dd943
6 changed files with 20 additions and 5 deletions
|
|
@ -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)
|
||||
}
|
||||
}()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue