opt: add resume btn

This commit is contained in:
Kingtous
2022-05-14 11:58:47 +08:00
parent d186dd26a2
commit 39eb1b7211
6 changed files with 126 additions and 13 deletions

View File

@@ -86,4 +86,20 @@ pub trait FileManager: Interface {
) {
self.send(Data::SendFiles((id, path, to, file_num, include_hidden, is_remote)));
}
fn add_job(
&mut self,
id: i32,
path: String,
to: String,
file_num: i32,
include_hidden: bool,
is_remote: bool,
) {
self.send(Data::AddJob((id, path, to, file_num, include_hidden, is_remote)));
}
fn resume_job(&mut self, id: i32, is_remote: bool){
self.send(Data::ResumeJob((id,is_remote)));
}
}