fix(queue): harden resume failure and legacy controls

This commit is contained in:
NimBold
2026-07-29 16:14:44 +03:30
parent ce8a5499c3
commit 546be23c91
6 changed files with 75 additions and 5 deletions
+9
View File
@@ -420,6 +420,15 @@ impl DownloadStateEvent {
}
}
pub fn paused_with_error(id: impl Into<String>, error: impl Into<String>) -> Self {
Self {
id: id.into(),
status: DownloadStatus::Paused.as_str().to_string(),
error: Some(error.into()),
file_name: None,
}
}
pub fn completed_with_file(id: impl Into<String>, file_name: impl Into<String>) -> Self {
Self {
id: id.into(),