* refinements for FILE+FOLDER mode (Swing FileChooser only)
This commit is contained in:
parent
660772dd2a
commit
c47a3ac45a
|
@ -1,6 +1,5 @@
|
|||
package net.filebot.ui.analyze;
|
||||
|
||||
import static java.util.Arrays.*;
|
||||
import static net.filebot.ui.NotificationLogging.*;
|
||||
import static net.filebot.util.FileUtilities.*;
|
||||
|
||||
|
@ -97,7 +96,7 @@ class FileTreeTransferablePolicy extends BackgroundFileTransferablePolicy<TreeNo
|
|||
|
||||
@Override
|
||||
public List<String> getFileFilterExtensions() {
|
||||
return asList("*");
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -170,7 +170,7 @@ class ChecksumTableTransferablePolicy extends BackgroundFileTransferablePolicy<C
|
|||
|
||||
@Override
|
||||
public String getFileFilterDescription() {
|
||||
return "Files, Folders and SFV Files";
|
||||
return "Folders and SFV Files";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -64,7 +64,7 @@ public class LoadAction extends AbstractAction {
|
|||
protected ExtensionFileFilter getFileFilter(TransferablePolicy transferablePolicy) {
|
||||
if (transferablePolicy instanceof FileTransferablePolicy) {
|
||||
final FileTransferablePolicy ftp = ((FileTransferablePolicy) transferablePolicy);
|
||||
if (ftp.getFileFilterDescription() != null) {
|
||||
if (ftp.getFileFilterDescription() != null && ftp.getFileFilterExtensions() != null) {
|
||||
return new ExtensionFileFilter(ftp.getFileFilterExtensions()) {
|
||||
@Override
|
||||
public String toString() {
|
||||
|
|
Loading…
Reference in New Issue