Merge branch 'develop' into feat/tui-results-navigation
This commit is contained in:
@@ -222,6 +222,9 @@ fn build_info_lines(
|
||||
}
|
||||
DownloadStatus::Paused { .. } => ("Paused".to_string(), info_style()),
|
||||
DownloadStatus::Completed => ("Completed".to_string(), success_style()),
|
||||
DownloadStatus::Cancelled => {
|
||||
("Cancelled".to_string(), inactive_style())
|
||||
}
|
||||
DownloadStatus::Failed(_) => ("Failed".to_string(), error_style()),
|
||||
DownloadStatus::TimedOut => ("Timed out".to_string(), error_style()),
|
||||
};
|
||||
@@ -305,7 +308,9 @@ fn build_info_lines(
|
||||
)));
|
||||
}
|
||||
}
|
||||
DownloadStatus::Completed | DownloadStatus::TimedOut => {}
|
||||
DownloadStatus::Completed
|
||||
| DownloadStatus::Cancelled
|
||||
| DownloadStatus::TimedOut => {}
|
||||
}
|
||||
|
||||
lines
|
||||
|
||||
@@ -81,6 +81,7 @@ pub fn render_downloads_pane(
|
||||
)
|
||||
}
|
||||
DownloadStatus::Completed => "Completed".to_string(),
|
||||
DownloadStatus::Cancelled => "Cancelled".to_string(),
|
||||
DownloadStatus::Failed(_) => "Failed".to_string(),
|
||||
DownloadStatus::TimedOut => "Timed out".to_string(),
|
||||
};
|
||||
@@ -97,7 +98,9 @@ pub fn render_downloads_pane(
|
||||
DownloadStatus::Failed(_) | DownloadStatus::TimedOut => {
|
||||
error_style()
|
||||
}
|
||||
DownloadStatus::Queued => inactive_style(),
|
||||
DownloadStatus::Queued | DownloadStatus::Cancelled => {
|
||||
inactive_style()
|
||||
}
|
||||
_ => primary_style(),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user