add: implement last jobs[2/2]

This commit is contained in:
Kingtous
2022-07-11 18:23:58 +08:00
parent 5aded67597
commit 9094999a8a
6 changed files with 210 additions and 17 deletions

View File

@@ -93,7 +93,7 @@ pub trait FileManager: Interface {
}
fn add_job(
&mut self,
&self,
id: i32,
path: String,
to: String,
@@ -111,7 +111,7 @@ pub trait FileManager: Interface {
)));
}
fn resume_job(&mut self, id: i32, is_remote: bool) {
fn resume_job(&self, id: i32, is_remote: bool) {
self.send(Data::ResumeJob((id, is_remote)));
}
}