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:
parent
46079e98f3
commit
9c15137fcb
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user