make total downloads bar work
This commit is contained in:
@@ -145,11 +145,11 @@ impl Handler for SubstitutionStatusHandler {
|
||||
id,
|
||||
fields:
|
||||
ResultFields::SetExpected {
|
||||
action: ActionType::CopyPaths,
|
||||
action: ActionType::FileTransfer,
|
||||
expected,
|
||||
},
|
||||
} => {
|
||||
self.max_copy = *expected;
|
||||
self.max_transfer = *expected;
|
||||
self.draw_bar(state.term_width);
|
||||
Ok(true)
|
||||
}
|
||||
@@ -157,7 +157,7 @@ impl Handler for SubstitutionStatusHandler {
|
||||
id,
|
||||
fields:
|
||||
ResultFields::SetExpected {
|
||||
action: ActionType::CopyPaths,
|
||||
action: ActionType::CopyPath,
|
||||
expected,
|
||||
},
|
||||
} => {
|
||||
|
||||
Reference in New Issue
Block a user