From 8d2bf65d1a7c0593dcda192e6c2651e599645589 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 1 Apr 2024 22:52:06 +0800 Subject: [PATCH] :art: Filter removed plugin --- kernel/model/plugin.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/model/plugin.go b/kernel/model/plugin.go index e0f64bdd8..1a6635de6 100644 --- a/kernel/model/plugin.go +++ b/kernel/model/plugin.go @@ -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