mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01: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:
parent
22565b9006
commit
fb982b5a81
2 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue