Explorar o código

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

Daniel hai 9 meses
pai
achega
0c450d9fcd
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      kernel/api/system.go

+ 5 - 0
kernel/api/system.go

@@ -230,6 +230,11 @@ func exportConf(c *gin.Context) {
 		return
 		return
 	}
 	}
 
 
+	if nil != clonedConf.Appearance {
+		clonedConf.Appearance.DarkThemes = nil
+		clonedConf.Appearance.LightThemes = nil
+		clonedConf.Appearance.Icons = nil
+	}
 	if nil != clonedConf.Editor {
 	if nil != clonedConf.Editor {
 		clonedConf.Editor.Emoji = []string{}
 		clonedConf.Editor.Emoji = []string{}
 	}
 	}