mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-09 05:51:31 -04:00
Default to false instead of null so we don't crash during DnD
This commit is contained in:
parent
74908608b1
commit
5fbe642d8e
@ -24,7 +24,7 @@ import net.filebot.util.SystemProperty;
|
|||||||
|
|
||||||
public class FileTransferable implements Transferable {
|
public class FileTransferable implements Transferable {
|
||||||
|
|
||||||
public static final SystemProperty<Boolean> forceSortOrder = SystemProperty.of("net.filebot.dnd.sort", Boolean::valueOf);
|
public static final SystemProperty<Boolean> forceSortOrder = SystemProperty.of("net.filebot.dnd.sort", Boolean::valueOf, false);
|
||||||
|
|
||||||
public static final DataFlavor uriListFlavor = createUriListFlavor();
|
public static final DataFlavor uriListFlavor = createUriListFlavor();
|
||||||
|
|
||||||
@ -138,6 +138,8 @@ public class FileTransferable implements Transferable {
|
|||||||
if (transferable instanceof List) {
|
if (transferable instanceof List) {
|
||||||
List<File> files = (List<File>) transferable;
|
List<File> files = (List<File>) transferable;
|
||||||
|
|
||||||
|
System.out.println(files);
|
||||||
|
|
||||||
// Windows Explorer DnD / Selection Order is broken and will probably never be fixed,
|
// Windows Explorer DnD / Selection Order is broken and will probably never be fixed,
|
||||||
// so we provide an override for users that want to enforce alphanumeric sort order of files dragged in
|
// so we provide an override for users that want to enforce alphanumeric sort order of files dragged in
|
||||||
if (forceSortOrder.get()) {
|
if (forceSortOrder.get()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user