🎨 Plugin uninstall

This commit is contained in:
Liang Ding 2023-05-06 10:41:43 +08:00
parent 439c1e6f8a
commit 73b980af69
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -87,6 +87,9 @@ func UninstallBazaarPlugin(pluginName string) error {
}
}
petals = tmp
if 1 > len(petals) {
petals = []*Petal{}
}
savePetals(petals)
return nil
}