Skip to content

Commit

Permalink
code cleanup. issue #2708
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Nov 27, 2024
1 parent f5a850e commit 5264701
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2395,14 +2395,13 @@ private void cmdSearchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIR
private void mnuHideFolderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuHideFolderActionPerformed
DefaultMutableTreeNode tn = (DefaultMutableTreeNode) this.treeFolders.getSelectionPath().getLastPathComponent();
FolderContainer folderC = (FolderContainer) tn.getUserObject();
Folder f = folderC.getFolder();


int response = JOptionPane.showConfirmDialog(this, "Ordner " + folderC.toString() + " ausblenden?", "Ordner ausblenden", JOptionPane.YES_NO_OPTION);
if (response == JOptionPane.YES_OPTION) {

MailboxSetup ms=getMailboxSetup(tn);
if(ms!=null) {
String fullPath=this.getFullPathInMailbox(new TreePath(((DefaultMutableTreeNode) tn).getPath()));
String fullPath=this.getFullPathInMailbox(new TreePath(tn.getPath()));
MailboxSettings.getInstance().hideFolder(ms, fullPath);

this.treeFolders.setSelectionPath(new TreePath(((DefaultMutableTreeNode) tn.getParent()).getPath()));
Expand Down

0 comments on commit 5264701

Please sign in to comment.