Skip to content

Commit

Permalink
remove the clear all filters option
Browse files Browse the repository at this point in the history
which is dangerous
  • Loading branch information
mierin12 committed Jan 11, 2025
1 parent fafe8a4 commit e995d67
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,22 +198,6 @@ public void menuAboutToShow(IMenuManager manager)
manager.add(new Separator());
manager.add(new SimpleAction(Messages.LabelClientFilterNew, a -> createCustomFilter()));
manager.add(new SimpleAction(Messages.LabelClientFilterManage, a -> editCustomFilter()));

manager.add(new SimpleAction(Messages.LabelClientClearCustomItems, a -> {
if (!MessageDialog.openConfirm(Display.getDefault().getActiveShell(), Messages.LabelClientClearCustomItems,
Messages.LabelClientClearCustomItems + "?")) //$NON-NLS-1$
return;

if (customItems.contains(selectedItem))
{
selectedItem = defaultItems.get(0);
listeners.forEach(l -> l.accept(selectedItem.filter));
}

customItems.clear();
filterConfig.clear();
client.touch();
}));
}

public void editCustomFilter()
Expand Down

0 comments on commit e995d67

Please sign in to comment.