From e995d677110ca7de80d3316f83f1b86b40b5b606 Mon Sep 17 00:00:00 2001 From: mierin12 Date: Sat, 11 Jan 2025 02:29:14 +0100 Subject: [PATCH] remove the clear all filters option which is dangerous --- .../portfolio/ui/util/ClientFilterMenu.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/util/ClientFilterMenu.java b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/util/ClientFilterMenu.java index c3155e52fd..68f11374d0 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/util/ClientFilterMenu.java +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/util/ClientFilterMenu.java @@ -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()