Load files in Human Sort Order as well when dropping them into the "New Names" list
This commit is contained in:
parent
d829ef97c8
commit
99ad431994
|
@ -97,7 +97,7 @@ class NamesListTransferablePolicy extends FileTransferablePolicy {
|
||||||
loadTorrentFiles(files, values);
|
loadTorrentFiles(files, values);
|
||||||
} else {
|
} else {
|
||||||
// load all files from the given folders recursively up do a depth of 32
|
// load all files from the given folders recursively up do a depth of 32
|
||||||
listFiles(files).stream().map(FastFile::new).forEach(values::add);
|
listFiles(files).stream().sorted(HUMAN_ORDER).map(FastFile::new).forEach(values::add);
|
||||||
}
|
}
|
||||||
|
|
||||||
model.addAll(values);
|
model.addAll(values);
|
||||||
|
|
Loading…
Reference in New Issue