Merge pull request #3625 from Akarshit/gsoc-CM2

Update notification hidden when no update is there
This commit is contained in:
Ben Fry
2015-08-15 12:43:20 -04:00
2 changed files with 7 additions and 0 deletions
@@ -335,6 +335,8 @@ public class ContributionManagerDialog {
tabLayout.setVerticalGroup(tabLayout
.createParallelGroup(GroupLayout.Alignment.CENTER)
.addComponent(numberLabel).addComponent(updateTabLabel));
numberLabel.setVisible(false);
}
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
@@ -235,8 +235,13 @@ public class UpdateContributionTab extends ContributionTab {
//
@Override
void updatePanelOrdering(Set<Contribution> contributionsSet) {
if(getNoOfRows() == 0){
contributionTab.contributionManagerDialog.numberLabel.setVisible(false);
}else{
contributionTab.contributionManagerDialog.numberLabel.setText(Integer
.toString(panelByContribution.size()));
contributionTab.contributionManagerDialog.numberLabel.setVisible(true);
}
dtm.getDataVector().removeAllElements();
dtm.fireTableDataChanged();
ContributionType temp = null;