fix(operation) noFilesCheck: false positive: files selected but current is ".."

This commit is contained in:
coderaiser 2017-10-23 11:37:49 +03:00
parent bba55adcb9
commit ba7cefc48b

View file

@ -41,8 +41,8 @@ function OperationProto(operation, data) {
const processFiles = currify(_processFiles);
const noFilesCheck = () => {
const name = Info.name;
const is = name === '..';
const {length} = DOM.getActiveFiles();
const is = Boolean(!length);
if (is)
return Dialog.alert.noFiles(TITLE);