mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 Filter removed plugin
This commit is contained in:
parent
4a049bf835
commit
8d2bf65d1a
1 changed files with 5 additions and 0 deletions
|
|
@ -88,6 +88,11 @@ func LoadPetals(frontend string) (ret []*Petal) {
|
||||||
|
|
||||||
petals := getPetals()
|
petals := getPetals()
|
||||||
for _, petal := range petals {
|
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)
|
_, petal.DisplayName, petal.Incompatible = bazaar.ParseInstalledPlugin(petal.Name, frontend)
|
||||||
if !petal.Enabled || petal.Incompatible {
|
if !petal.Enabled || petal.Incompatible {
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue