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:
parent
1e7c7f89fb
commit
7a9db6ccf8
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user