From 911490c350d9be5a2d888f28d6f383f1b8823246 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 28 Oct 2022 20:01:30 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=94=AF=E6=8C=81=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E6=82=AC=E6=B5=AE=E7=AA=97=E5=BC=B9=E5=87=BA=E9=80=89=E9=A1=B9?= =?UTF-8?q?=20https://github.com/siyuan-note/siyuan/issues/4781?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/conf/editor.go | 4 ++-- kernel/server/serve.go | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/conf/editor.go b/kernel/conf/editor.go index 2ae56d495..85fd131b9 100644 --- a/kernel/conf/editor.go +++ b/kernel/conf/editor.go @@ -38,7 +38,7 @@ type Editor struct { ReadOnly bool `json:"readOnly"` // 只读模式 EmbedBlockBreadcrumb bool `json:"embedBlockBreadcrumb"` // 嵌入块是否显示面包屑 ListLogicalOutdent bool `json:"listLogicalOutdent"` // 列表逻辑反向缩进 - BlockRefFloatWindowMode int `json:"blockRefFloatWindowMode"` // 块引悬浮窗触发模式,0:光标悬停,1:按住 Ctrl 悬停 + FloatWindowMode int `json:"floatWindowMode"` // 浮窗触发模式,0:光标悬停,1:按住 Ctrl 悬停 } func NewEditor() *Editor { @@ -61,6 +61,6 @@ func NewEditor() *Editor { ReadOnly: false, EmbedBlockBreadcrumb: false, ListLogicalOutdent: false, - BlockRefFloatWindowMode: 0, + FloatWindowMode: 0, } } diff --git a/kernel/server/serve.go b/kernel/server/serve.go index 11444619c..adc96689a 100644 --- a/kernel/server/serve.go +++ b/kernel/server/serve.go @@ -81,6 +81,7 @@ func Serve(fastMode bool) { host = "127.0.0.1" } + logging.LogInfof("boot kernel [fast=%v, port=%s]", fastMode, util.ServerPort) ln, err := net.Listen("tcp", host+":"+util.ServerPort) if nil != err { if !fastMode {