🎨 Improve interface loading after switching themes and updating code snippets https://github.com/siyuan-note/siyuan/issues/16390

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel
2025-11-23 19:33:22 +08:00
parent 22565b9006
commit fb982b5a81
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -79,6 +79,7 @@ func setConfSnippet(c *gin.Context) {
model.Conf.Save()
ret.Data = snippet
util.BroadcastByType("main", "setSnippet", 0, "", snippet)
}
func addVirtualBlockRefExclude(c *gin.Context) {
+2
View File
@@ -356,6 +356,7 @@ func InstallBazaarIcon(repoURL, repoHash, iconName string) error {
Conf.Appearance.Icon = iconName
Conf.Save()
InitAppearance()
util.BroadcastByType("main", "setAppearance", 0, "", Conf.Appearance)
return nil
}
@@ -431,6 +432,7 @@ func InstallBazaarTheme(repoURL, repoHash, themeName string, mode int, update bo
}
InitAppearance()
util.BroadcastByType("main", "setAppearance", 0, "", Conf.Appearance)
return nil
}