mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Cancel the read-only mode message notification after startup Fix https://github.com/siyuan-note/siyuan/issues/9100
This commit is contained in:
parent
658e68d752
commit
982e109af4
6 changed files with 5 additions and 19 deletions
|
|
@ -206,20 +206,6 @@ func getConf(c *gin.Context) {
|
|||
"conf": maskedConf,
|
||||
"start": !util.IsUILoaded,
|
||||
}
|
||||
|
||||
if !util.IsUILoaded {
|
||||
go func() {
|
||||
util.WaitForUILoaded()
|
||||
|
||||
if model.Conf.Editor.ReadOnly {
|
||||
// 编辑器启用只读模式时启动后提示用户 https://github.com/siyuan-note/siyuan/issues/7700
|
||||
time.Sleep(time.Second * 3)
|
||||
if model.Conf.Editor.ReadOnly {
|
||||
util.PushMsg(model.Conf.Language(197), 7000)
|
||||
}
|
||||
}
|
||||
}()
|
||||
}
|
||||
}
|
||||
|
||||
func setUILayout(c *gin.Context) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue