mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-22 07:30:24 +00:00
Fix drag and drop sometimes having the wrong target
This commit is contained in:
parent
7eb840e5a8
commit
bd9cc5cfcb
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ public class FileListCompEntry {
|
|||
// Accept drops from inside the app window
|
||||
if (event.getGestureSource() != null) {
|
||||
var files = FileBrowserClipboard.retrieveDrag(event.getDragboard()).getEntries();
|
||||
var target = item != null
|
||||
var target = item != null && item.isDirectory()
|
||||
? item
|
||||
: model.getFileSystemModel().getCurrentDirectory();
|
||||
model.getFileSystemModel().dropFilesIntoAsync(target, files, false);
|
||||
|
|
Loading…
Reference in a new issue