Integrate file uploads and downloads with plasma's job tracker

Implements #538
This commit is contained in:
Tobias Fella
2022-11-22 18:21:49 +01:00
parent 37e4d85978
commit ab1b1f6c08
6 changed files with 110 additions and 3 deletions

View File

@@ -160,10 +160,10 @@ TimelineContainer {
FileDialog {
fileMode: FileDialog.SaveFile
folder: StandardPaths.writableLocation(StandardPaths.DownloadLocation)
onAccepted: if (openSavedFile) {
onAccepted: if (autoOpenFile) {
UrlHelper.copyTo(progressInfo.localPath, file)
} else {
currentRoom.downloadFile(eventId, file);
currentRoom.download(eventId, file);
}
}
}