This commit is contained in:
Daniel 2023-06-30 10:26:25 +08:00
parent d94893f9a6
commit ba3f5fe5e5
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 6 additions and 3 deletions

View file

@ -108,7 +108,7 @@ func Plugins(frontend string) (plugins []*Plugin) {
return
}
func IsIncompatibleInstalledPlugin(name, frontend string) (found, incompatible bool) {
func ParseInstalledPlugin(name, frontend string) (found bool, displayName string, incompatible bool) {
pluginsPath := filepath.Join(util.DataDir, "plugins")
if !util.IsPathRegularDirOrSymlinkDir(pluginsPath) {
return
@ -135,6 +135,7 @@ func IsIncompatibleInstalledPlugin(name, frontend string) (found, incompatible b
}
found = true
displayName = getPreferredName(plugin.Package)
incompatible = isIncompatiblePlugin(plugin, frontend)
}
return