diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-09-11 21:43:14 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-10-09 14:08:52 +0200 |
| commit | fefcf353520ebbe9e63f59e25a85fc122a5acc7a (patch) | |
| tree | 8f272bd6137c5663f3d77ed337d6eec1d7695fd0 /main/src | |
| parent | 90bee87ff5cf6cf3ee481394ece343e2446ac70f (diff) | |
| download | dino-fefcf353520ebbe9e63f59e25a85fc122a5acc7a.tar.gz | |
Allow to resume failed transfers
Diffstat (limited to 'main/src')
| -rw-r--r-- | main/src/ui/conversation_content_view/file_widget.vala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/ui/conversation_content_view/file_widget.vala b/main/src/ui/conversation_content_view/file_widget.vala index b63195dc..cac6fda4 100644 --- a/main/src/ui/conversation_content_view/file_widget.vala +++ b/main/src/ui/conversation_content_view/file_widget.vala @@ -198,12 +198,13 @@ public class FileDefaultWidgetController : Object { open_file(); } break; + case FileTransfer.State.FAILED: case FileTransfer.State.NOT_STARTED: assert(stream_interactor != null && file_transfer != null); stream_interactor.get_module(FileManager.IDENTITY).download_file.begin(file_transfer); break; default: - // Clicking doesn't do anything in FAILED and IN_PROGRESS states + // Clicking doesn't do anything in IN_PROGRESS states break; } return false; |
