Add TUI download pause and queued delete
This commit is contained in:
@@ -112,6 +112,9 @@ impl Download {
|
||||
match &self.status {
|
||||
DownloadStatus::InProgress {
|
||||
bytes_downloaded, ..
|
||||
}
|
||||
| DownloadStatus::Paused {
|
||||
bytes_downloaded, ..
|
||||
} => *bytes_downloaded,
|
||||
DownloadStatus::Completed => self.size,
|
||||
_ => 0,
|
||||
@@ -138,6 +141,10 @@ pub enum DownloadStatus {
|
||||
total_bytes: u64,
|
||||
speed_bytes_per_sec: f64,
|
||||
},
|
||||
Paused {
|
||||
bytes_downloaded: u64,
|
||||
total_bytes: u64,
|
||||
},
|
||||
Completed,
|
||||
Failed,
|
||||
TimedOut,
|
||||
|
||||
Reference in New Issue
Block a user