1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-31 20:52:13 +01:00

Show maintainer instead of author in lib manager

This commit is contained in:
Cristian Maglie 2020-10-12 14:03:26 +02:00 committed by Cristian Maglie
parent 1e7c7f89fb
commit 7a9db6ccf8

View File

@ -148,8 +148,8 @@ public class ContributedLibraryTableCellJPanel extends JPanel {
installButtonPlaceholder.setVisible(!(installable || upgradable));
String name = selected.getName();
String author = selected.getAuthor();
// String maintainer = selectedLib.getMaintainer();
// String author = selected.getAuthor();
String maintainer = selected.getMaintainer();
final String website = selected.getWebsite();
String sentence = selected.getSentence();
String paragraph = selected.getParagraph();
@ -168,8 +168,8 @@ public class ContributedLibraryTableCellJPanel extends JPanel {
// ...author...
desc += format("<font color=\"{0}\">", midcolor);
if (author != null && !author.isEmpty()) {
desc += format(" by <b>{0}</b>", author);
if (maintainer != null && !maintainer.isEmpty()) {
desc += format(" by <b>{0}</b>", maintainer);
}
// ...version.
@ -196,7 +196,7 @@ public class ContributedLibraryTableCellJPanel extends JPanel {
desc += format("{0}", paragraph);
desc += "<br />";
}
if (author != null && !author.isEmpty()) {
if (maintainer != null && !maintainer.isEmpty()) {
desc = setButtonOrLink(moreInfoButton, desc, moreInfoLbl, website);
}