🎨 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
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 3 additions and 0 deletions

View file

@ -79,6 +79,7 @@ func setConfSnippet(c *gin.Context) {
model.Conf.Save() model.Conf.Save()
ret.Data = snippet ret.Data = snippet
util.BroadcastByType("main", "setSnippet", 0, "", snippet)
} }
func addVirtualBlockRefExclude(c *gin.Context) { func addVirtualBlockRefExclude(c *gin.Context) {

View file

@ -356,6 +356,7 @@ func InstallBazaarIcon(repoURL, repoHash, iconName string) error {
Conf.Appearance.Icon = iconName Conf.Appearance.Icon = iconName
Conf.Save() Conf.Save()
InitAppearance() InitAppearance()
util.BroadcastByType("main", "setAppearance", 0, "", Conf.Appearance)
return nil return nil
} }
@ -431,6 +432,7 @@ func InstallBazaarTheme(repoURL, repoHash, themeName string, mode int, update bo
} }
InitAppearance() InitAppearance()
util.BroadcastByType("main", "setAppearance", 0, "", Conf.Appearance)
return nil return nil
} }