mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Plugin uninstall
This commit is contained in:
parent
6eb3673b6e
commit
439c1e6f8a
2 changed files with 5 additions and 4 deletions
2
app/stage/protyle/js/lute/lute.min.js
vendored
2
app/stage/protyle/js/lute/lute.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -80,12 +80,13 @@ func UninstallBazaarPlugin(pluginName string) error {
|
|||
}
|
||||
|
||||
petals := getPetals()
|
||||
var tmp []*Petal
|
||||
for i, petal := range petals {
|
||||
if petal.Name == pluginName {
|
||||
petals = append(petals[:i], petals[i+1:]...)
|
||||
break
|
||||
if petal.Name != pluginName {
|
||||
tmp = append(tmp, petals[i])
|
||||
}
|
||||
}
|
||||
petals = tmp
|
||||
savePetals(petals)
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue