Fix link via paste entries from clipboard did not work with app entries

Gave errors like File '#' is not an absolute path!
This commit is contained in:
nathan 2025-01-22 14:29:12 -07:00
parent 32e04b1ea6
commit 5da2b081ba

View File

@ -509,7 +509,8 @@ export class Et2LinkTo extends Et2InputWidget(LitElement)
let fileInfo = []
selected.forEach(file =>
{
fileInfo.push({...this.pasteDialog.fileInfo(file), app: "link"});
const info = this.pasteDialog.fileInfo(file);
fileInfo.push(info);
})
this.handleVfsFile(button, fileInfo);
this.pasteButton.value = [];