mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
Fix executing the uninstall method when closing the plugin (#16522)
* 🐛 Fix executing the uninstall method when closing the plugin
* 后端推送区分插件禁用与卸载
This commit is contained in:
parent
ab62a13cb0
commit
ec881a76af
5 changed files with 54 additions and 26 deletions
|
|
@ -68,9 +68,9 @@ func setPetalEnabled(c *gin.Context) {
|
|||
}
|
||||
if enabled {
|
||||
upsertPluginCodeSet := hashset.New(packageName)
|
||||
model.PushReloadPlugin(upsertPluginCodeSet, nil, nil, app)
|
||||
model.PushReloadPlugin(upsertPluginCodeSet, nil, nil, nil, app)
|
||||
} else {
|
||||
removePluginSet := hashset.New(packageName)
|
||||
model.PushReloadPlugin(nil, nil, removePluginSet, app)
|
||||
unloadPluginSet := hashset.New(packageName)
|
||||
model.PushReloadPlugin(nil, nil, unloadPluginSet, nil, app)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue