Skip to content

Commit

Permalink
fixed bug related to disabled context menu for emptying trash
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Oct 28, 2024
1 parent f42161e commit e17c8eb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1749,7 +1749,7 @@ private void treeFoldersMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRS
this.mnuRemoveFolder.setEnabled(true);
}

this.mnuEmptyTrash.setEnabled(CommonMailUtils.TRASH.equalsIgnoreCase(f.getName()));
this.mnuEmptyTrash.setEnabled(CommonMailUtils.TRASH.equalsIgnoreCase(f.getName()) || CommonMailUtils.isTrash(f.getName()));

if (f instanceof POP3Folder) {
this.mnuNewFolder.setEnabled(false);
Expand Down Expand Up @@ -1815,7 +1815,7 @@ private void treeFoldersMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST
this.mnuRemoveFolder.setEnabled(true);
}

this.mnuEmptyTrash.setEnabled(CommonMailUtils.TRASH.equalsIgnoreCase(f.getName()));
this.mnuEmptyTrash.setEnabled(CommonMailUtils.TRASH.equalsIgnoreCase(f.getName()) || CommonMailUtils.isTrash(f.getName()) || CommonMailUtils.isTrash(f.getName()));

if (f instanceof POP3Folder) {
this.mnuNewFolder.setEnabled(false);
Expand Down

0 comments on commit e17c8eb

Please sign in to comment.