Skip to content

Commit 2f6359d

Browse files
committed
ClearRecent: blacklist as "no-legacy"
ClearRecent should not be a legacy command.. it does not function properly right now. It is interpreted improperly as a file named "Clear List" and attempted to be opened.
1 parent ea6eaf2 commit 2f6359d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/org/scijava/plugins/commands/io/ClearRecent.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import org.scijava.command.Command;
3535
import org.scijava.io.RecentFileService;
3636
import org.scijava.menu.MenuConstants;
37+
import org.scijava.plugin.Attr;
3738
import org.scijava.plugin.Menu;
3839
import org.scijava.plugin.Parameter;
3940
import org.scijava.plugin.Plugin;
@@ -48,7 +49,7 @@
4849
mnemonic = MenuConstants.FILE_MNEMONIC),
4950
@Menu(label = "Open Recent", weight = 4, mnemonic = 'r'),
5051
@Menu(label = "Clear List", weight = RecentFileService.MAX_FILES_SHOWN + 10,
51-
mnemonic = 'c') })
52+
mnemonic = 'c') }, attrs = { @Attr(name = "no-legacy") })
5253
public class ClearRecent implements Command {
5354

5455
@Parameter

0 commit comments

Comments
 (0)