🎨 Improve the fallback logic of the marketplace (#16601)

This commit is contained in:
Jeffrey Chen 2025-12-16 20:35:15 +08:00 committed by GitHub
parent 7217c66636
commit 5a3ad845d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View file

@ -247,9 +247,10 @@ func isIncompatiblePlugin(plugin *Plugin, currentFrontend string) bool {
return false
}
currentBackend := getCurrentBackend()
backendOk := false
for _, backend := range plugin.Backends {
if backend == getCurrentBackend() || "all" == backend {
if backend == currentBackend || "all" == backend {
backendOk = true
break
}