1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-01 21:52:12 +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)); installButtonPlaceholder.setVisible(!(installable || upgradable));
String name = selected.getName(); String name = selected.getName();
String author = selected.getAuthor(); // String author = selected.getAuthor();
// String maintainer = selectedLib.getMaintainer(); String maintainer = selected.getMaintainer();
final String website = selected.getWebsite(); final String website = selected.getWebsite();
String sentence = selected.getSentence(); String sentence = selected.getSentence();
String paragraph = selected.getParagraph(); String paragraph = selected.getParagraph();
@ -168,8 +168,8 @@ public class ContributedLibraryTableCellJPanel extends JPanel {
// ...author... // ...author...
desc += format("<font color=\"{0}\">", midcolor); desc += format("<font color=\"{0}\">", midcolor);
if (author != null && !author.isEmpty()) { if (maintainer != null && !maintainer.isEmpty()) {
desc += format(" by <b>{0}</b>", author); desc += format(" by <b>{0}</b>", maintainer);
} }
// ...version. // ...version.
@ -196,7 +196,7 @@ public class ContributedLibraryTableCellJPanel extends JPanel {
desc += format("{0}", paragraph); desc += format("{0}", paragraph);
desc += "<br />"; desc += "<br />";
} }
if (author != null && !author.isEmpty()) { if (maintainer != null && !maintainer.isEmpty()) {
desc = setButtonOrLink(moreInfoButton, desc, moreInfoLbl, website); desc = setButtonOrLink(moreInfoButton, desc, moreInfoLbl, website);
} }