🎨 Filter removed plugin

This commit is contained in:
Daniel 2024-04-01 22:52:06 +08:00
parent 4a049bf835
commit 8d2bf65d1a
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -88,6 +88,11 @@ func LoadPetals(frontend string) (ret []*Petal) {
petals := getPetals()
for _, petal := range petals {
installPath := filepath.Join(util.DataDir, "plugins", petal.Name)
if !filelock.IsExist(installPath) {
continue
}
_, petal.DisplayName, petal.Incompatible = bazaar.ParseInstalledPlugin(petal.Name, frontend)
if !petal.Enabled || petal.Incompatible {
continue