mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-29 12:58:48 +01:00
🧑💻 Add onDataChanged method to handle data changes in the plugin (#16244)
This commit is contained in:
parent
319cdbb98a
commit
9bfe00cf10
7 changed files with 94 additions and 35 deletions
|
|
@ -67,10 +67,10 @@ func setPetalEnabled(c *gin.Context) {
|
|||
app = arg["app"].(string)
|
||||
}
|
||||
if enabled {
|
||||
upsertPluginSet := hashset.New(packageName)
|
||||
model.PushReloadPlugin(upsertPluginSet, nil, app)
|
||||
upsertPluginCodeSet := hashset.New(packageName)
|
||||
model.PushReloadPlugin(upsertPluginCodeSet, nil, nil, app)
|
||||
} else {
|
||||
removePluginSet := hashset.New(packageName)
|
||||
model.PushReloadPlugin(nil, removePluginSet, app)
|
||||
model.PushReloadPlugin(nil, nil, removePluginSet, app)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue