Hide deprecated plugins inside the available section on update center

This commit is contained in:
Joseph Petersen committed 2020-02-19 22:36:52 +01:00
1 parent 22f9cc9ab2
commit a05b37ea87
3 files changed
+15 -2

No files matched your search

+1 -2
View File
@@ -369,8 +369,7 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
* @since TODO
*/
public boolean isDeprecated() {
UpdateSite.Plugin info = getInfo();
return info != null && Arrays.asList(info.categories).contains("deprecated");
return getInfo().isDeprecated();
}
@ExportedBean