mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Cancel the read-only mode message notification after startup Fix https://github.com/siyuan-note/siyuan/issues/9100
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user