Skip to content

Commit

Permalink
fix issue #520 #520
Browse files Browse the repository at this point in the history
  • Loading branch information
LesleyWagner committed Aug 20, 2022
1 parent 077628d commit 40d9c66
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,7 @@ bin-test
# dated folders
/19*
/20*

# VS Code Java project files
.project
.vscode/
6 changes: 5 additions & 1 deletion app/src/processing/app/contrib/ContributionTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ protected void setLayout() {
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER)
.addComponent(categoryChooser)
.addComponent(filterField))
.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
// fix for issue #520 https://github.com/processing/processing4/issues/520
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER)
.addComponent(loaderLabel)
.addComponent(listPanel))
Expand Down Expand Up @@ -270,6 +271,9 @@ protected void updateCategoryChooser() {
Set<String> categories = listCategories();
if (categories.size() == 1 &&
categories.contains(Contribution.UNKNOWN_CATEGORY)) {
// Add dummy item for sizing purpose
// fix for issue #520 https://github.com/processing/processing4/issues/520
categoryChooser.addItem("NULL");
// If no unique categories, hide the category chooser
categoryChooser.setVisible(false);

Expand Down

0 comments on commit 40d9c66

Please sign in to comment.