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

Renamed wrong named variable

This commit is contained in:
Cristian Maglie 2019-01-14 16:52:50 +01:00
parent 1b0f00ee38
commit f5f8b7f29c

View File

@ -98,27 +98,27 @@ public class ContributedLibraryTableCellEditor extends InstallerTableCell {
editorCell.downgradeChooser.addItem(tr("Select version"));
final List<ContributedLibrary> notInstalledPrevious = new LinkedList<>();
final List<ContributedLibrary> notIInstalledNewer = new LinkedList<>();
final List<ContributedLibrary> notInstalledNewer = new LinkedList<>();
notInstalled.stream().forEach(input -> {
if (!mayInstalled.isPresent()
|| VersionComparator.greaterThan(mayInstalled.get(), input)) {
notInstalledPrevious.add(input);
} else {
notIInstalledNewer.add(input);
notInstalledNewer.add(input);
}
});
notIInstalledNewer.forEach(editorCell.downgradeChooser::addItem);
notInstalledNewer.forEach(editorCell.downgradeChooser::addItem);
notInstalledPrevious.forEach(editorCell.downgradeChooser::addItem);
editorCell.downgradeChooser
.setVisible(mayInstalled.isPresent()
&& (!notInstalledPrevious.isEmpty()
|| notIInstalledNewer.size() > 1));
|| notInstalledNewer.size() > 1));
editorCell.downgradeButton
.setVisible(mayInstalled.isPresent()
&& (!notInstalledPrevious.isEmpty()
|| notIInstalledNewer.size() > 1));
|| notInstalledNewer.size() > 1));
editorCell.versionToInstallChooser.removeAllItems();
notInstalled.forEach(editorCell.versionToInstallChooser::addItem);