Fix new item show condition

This commit is contained in:
crschnick
2025-03-03 20:44:28 +00:00
parent 565f2f4cdd
commit 0329a87ffd

View File

@@ -43,15 +43,6 @@ public class NewItemAction implements BrowserAction, BrowserBranchAction {
return AppI18n.observable("new");
}
@Override
public boolean isApplicable(BrowserFileSystemTabModel model, List<BrowserEntry> entries) {
return entries.size() == 1
&& entries.getFirst()
.getRawFileEntry()
.getPath()
.equals(model.getCurrentPath().get());
}
@Override
public List<BrowserLeafAction> getBranchingActions(BrowserFileSystemTabModel model, List<BrowserEntry> entries) {
return List.of(