diff --git a/addons/explorer/src/renderer/FileExplorer.vue b/addons/explorer/src/renderer/FileExplorer.vue index d2db8585..53da2d73 100644 --- a/addons/explorer/src/renderer/FileExplorer.vue +++ b/addons/explorer/src/renderer/FileExplorer.vue @@ -93,6 +93,13 @@ function openExternal(file: FileEntity) { function openExternalDirectory() { ipcRenderer.invoke('open-path', modelValue) } + +function startDragging(event: DragEvent, file: FileEntity) { + if (event.dataTransfer) { + event.dataTransfer.setData('text/plain', file.path) + } + ipcRenderer.invoke('drag-file', file.path) +}