From 64a1d6999699b8725cc9574b5f7089ce41b0f873 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 17 Mar 2023 19:52:10 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=94=AF=E6=8C=81=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E5=92=8C=E5=8A=A0=E8=BD=BD=E4=B8=8D=E5=90=8C=E7=9A=84?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E5=B8=83=E5=B1=80=20https://github.com/siyua?= =?UTF-8?q?n-note/siyuan/issues/7636?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/conf.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kernel/model/conf.go b/kernel/model/conf.go index 06da62cb8..e8dab7c92 100644 --- a/kernel/model/conf.go +++ b/kernel/model/conf.go @@ -59,7 +59,6 @@ type AppConf struct { Export *conf.Export `json:"export"` // 导出配置 Graph *conf.Graph `json:"graph"` // 关系图配置 UILayout *conf.UILayout `json:"uiLayout"` // 界面布局,v2.8.0 后这个字段不再使用 - UILayouts []*conf.UILayout `json:"uiLayouts"` // 界面布局列表 UserData string `json:"userData"` // 社区用户信息,对 User 加密存储 User *conf.User `json:"-"` // 社区用户内存结构,不持久化 Account *conf.Account `json:"account"` // 帐号配置 @@ -150,9 +149,6 @@ func InitConf() { if nil == Conf.UILayout { Conf.UILayout = &conf.UILayout{} } - if 1 > len(Conf.UILayouts) { - Conf.UILayouts = []*conf.UILayout{} - } if nil == Conf.Keymap { Conf.Keymap = &conf.Keymap{} }