* allow dropping of folders that don't contain video files
This commit is contained in:
parent
46079e98f3
commit
9c15137fcb
|
@ -168,7 +168,7 @@ abstract class SubtitleDropTarget extends JButton {
|
||||||
|
|
||||||
private DropAction getDropAction(List<File> files) {
|
private DropAction getDropAction(List<File> files) {
|
||||||
// video files only, or any folder, containing video 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;
|
return DropAction.Download;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue