mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
Overrided method so duplicates don't get added
This commit is contained in:
@@ -237,11 +237,6 @@ class StatusPanel extends JPanel {
|
||||
|
||||
|
||||
public void update(ContributionPanel panel) {
|
||||
if(contributionTab.contributionManagerDialog.updatesContributionTab.contributionListPanel.panelByContribution.values().contains(panel)){
|
||||
System.out.println("same");
|
||||
}else{
|
||||
System.out.println("diff");
|
||||
}
|
||||
progressPanel.removeAll();
|
||||
|
||||
iconLabel.setIcon(panel.getContrib().isSpecial() ? foundationIcon : null);
|
||||
|
||||
@@ -298,13 +298,14 @@ public class UpdateContributionTab extends ContributionTab {
|
||||
}
|
||||
((UpdateStatusPanel)statusPanel).update();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void contributionAdded(final Contribution contribution) {
|
||||
if (filter.matches(contribution)) {
|
||||
EventQueue.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
ContributionPanel newPanel = contributionManagerDialog
|
||||
.getTab(contributionType).contributionListPanel.panelByContribution
|
||||
.getTab(contribution.getType()).contributionListPanel.panelByContribution
|
||||
.get(contribution);
|
||||
if (newPanel == null) {
|
||||
newPanel = new ContributionPanel(UpdateContribListingPanel.this);
|
||||
|
||||
Reference in New Issue
Block a user