Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ public ContributedLibraryTableCellJPanel(JTable parentTable, Object value,
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();
Expand All @@ -168,8 +168,8 @@ public ContributedLibraryTableCellJPanel(JTable parentTable, Object value,

// ...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.
Expand All @@ -196,7 +196,7 @@ public ContributedLibraryTableCellJPanel(JTable parentTable, Object value,
desc += format("{0}", paragraph);
desc += "<br />";
}
if (author != null && !author.isEmpty()) {
if (maintainer != null && !maintainer.isEmpty()) {
desc = setButtonOrLink(moreInfoButton, desc, moreInfoLbl, website);
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not strictly related to this change, but why does this if exist? Seems like you don't get a "More info" button/link when no author (or now maintainer) is set, but that doesn't make sense to me?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, it should be website != null && !website.isEmpty(), I guess we may fix it together with this PR.


Expand Down