From 6d3aef271875eba7a3867259f2089e3801141b19 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Wed, 4 Oct 2023 01:23:11 +0200 Subject: Show file upload/download progress Fixes upstream issue #1350. Notes: Image uploads were incorrectly handled by Dino, as they were always reported as completed even if they were not, maybe so as to show the image preview from the start. Now, Dino shows the upload progress for all file types, and the image is only shown when completed. --- libdino/src/entity/file_transfer.vala | 1 + 1 file changed, 1 insertion(+) (limited to 'libdino/src/entity/file_transfer.vala') diff --git a/libdino/src/entity/file_transfer.vala b/libdino/src/entity/file_transfer.vala index 20bc1a7a..b58348a0 100644 --- a/libdino/src/entity/file_transfer.vala +++ b/libdino/src/entity/file_transfer.vala @@ -70,6 +70,7 @@ public class FileTransfer : Object { public State state { get; set; default=State.NOT_STARTED; } public int provider { get; set; } public string info { get; set; } + public uint64 transferred_bytes {get; set; } public Cancellable cancellable { get; default=new Cancellable(); } private Database? db; -- cgit v1.2.3