🎨 Improve the fallback logic of the marketplace

This commit is contained in:
Jeffrey Chen 2025-12-16 17:49:51 +08:00
parent 7217c66636
commit 78b35745b9
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
}