Browse Source

:art: Support export and import settings https://github.com/siyuan-note/siyuan/issues/10617

Daniel 9 months ago
parent
commit
0c450d9fcd
1 changed files with 5 additions and 0 deletions
  1. 5 0
      kernel/api/system.go

+ 5 - 0
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{}
 	}