From 0c450d9fcd76da42e1aee12ebbb056ff33c6caf8 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Thu, 26 Sep 2024 11:16:47 +0800 Subject: [PATCH] :art: Support export and import settings https://github.com/siyuan-note/siyuan/issues/10617 --- kernel/api/system.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/api/system.go b/kernel/api/system.go index 8eb975c48..f9a04ffc0 100644 --- a/kernel/api/system.go +++ b/kernel/api/system.go @@ -230,6 +230,11 @@ func exportConf(c *gin.Context) { return } + if nil != clonedConf.Appearance { + clonedConf.Appearance.DarkThemes = nil + clonedConf.Appearance.LightThemes = nil + clonedConf.Appearance.Icons = nil + } if nil != clonedConf.Editor { clonedConf.Editor.Emoji = []string{} }