mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Merge pull request #3625 from Akarshit/gsoc-CM2
Update notification hidden when no update is there
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user