mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-22 00:06:09 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
a8f56e55e3
commit
957a928959
6 changed files with 82 additions and 19 deletions
|
|
@ -1690,7 +1690,7 @@ func processSyncMergeResult(exit, byHand bool, mergeResult *dejavu.MergeResult,
|
|||
}
|
||||
|
||||
if needReloadPlugin {
|
||||
pushReloadPlugin(upsertPluginSet, removePluginSet)
|
||||
pushReloadPlugin(upsertPluginSet, removePluginSet, "")
|
||||
}
|
||||
|
||||
for _, widgetDir := range removeWidgetDirSet.Values() {
|
||||
|
|
@ -2258,19 +2258,3 @@ func getCloudSpace() (stat *cloud.Stat, err error) {
|
|||
}
|
||||
return
|
||||
}
|
||||
|
||||
func pushReloadPlugin(upsertPluginSet, removePluginNameSet *hashset.Set) {
|
||||
upsertPlugins, removePlugins := []string{}, []string{}
|
||||
for _, n := range upsertPluginSet.Values() {
|
||||
upsertPlugins = append(upsertPlugins, n.(string))
|
||||
}
|
||||
for _, n := range removePluginNameSet.Values() {
|
||||
removePlugins = append(removePlugins, n.(string))
|
||||
}
|
||||
|
||||
logging.LogInfof("reload plugins [upserts=%v, removes=%v]", upsertPlugins, removePlugins)
|
||||
util.BroadcastByType("main", "reloadPlugin", 0, "", map[string]interface{}{
|
||||
"upsertPlugins": upsertPlugins,
|
||||
"removePlugins": removePlugins,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue