mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-05-03 16:50:04 -05:00
🎨 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:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user