chore: refactor UI to use Downloads struct
This commit is contained in:
@@ -374,6 +374,10 @@ impl Client {
|
||||
self.context.read().unwrap().searches.clone()
|
||||
}
|
||||
|
||||
pub fn get_all_downloads(&self) -> Vec<Download> {
|
||||
self.context.read().unwrap().get_downloads().clone()
|
||||
}
|
||||
|
||||
pub fn download(
|
||||
&self,
|
||||
filename: String,
|
||||
|
||||
Reference in New Issue
Block a user