refactor: zip download progress notification

This commit is contained in:
Aman Harwara
2024-01-08 20:17:28 +05:30
parent 130b63b1a5
commit 65d68f8080

View File

@@ -781,7 +781,7 @@ export class FilesController extends AbstractViewController<FilesControllerEvent
.downloadFile(file, async (bytesChunk, progress) => {
await writer.write(bytesChunk)
updateToast(toast, {
message: `Downloading file "${truncateString(file.name, 20)}"`,
message: `Downloading "${truncateString(file.name, 25)}"`,
progress: Math.floor(progress.percentComplete),
})
})