1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-04 16:35:08 -05:00

* allow dropping of folders that don't contain video files

This commit is contained in:
Reinhard Pointner 2011-11-14 12:05:05 +00:00
parent 46079e98f3
commit 9c15137fcb

View File

@ -168,7 +168,7 @@ abstract class SubtitleDropTarget extends JButton {
private DropAction getDropAction(List<File> files) {
// video files only, or any folder, containing video files
if (containsOnly(files, VIDEO_FILES) || (containsOnly(files, FOLDERS) && filter(listFiles(files, 0, false), VIDEO_FILES).size() > 0)) {
if (containsOnly(files, VIDEO_FILES) || (containsOnly(files, FOLDERS))) {
return DropAction.Download;
}