mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-04-23 08:00:56 -04:00
Fix new item show condition
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user