make loading bar start as soon as connection is established
This commit is contained in:
parent
ba9003a88c
commit
bd3e770a0d
1 changed files with 2 additions and 2 deletions
|
@ -195,7 +195,7 @@ pub fn gui() -> Result<(), iui::UIError> {
|
|||
let barb = barb.clone();
|
||||
|
||||
thread::spawn(move || {
|
||||
let mut last_percentage = 0;
|
||||
let mut last_percentage = -1;
|
||||
let lpb = RefMut::new(&mut last_percentage);
|
||||
let uib1 = uib.clone();
|
||||
let barb1 = barb.clone();
|
||||
|
@ -231,7 +231,7 @@ pub fn gui() -> Result<(), iui::UIError> {
|
|||
let barb = barb.clone();
|
||||
|
||||
thread::spawn(move || {
|
||||
let mut last_percentage = 0;
|
||||
let mut last_percentage = -1;
|
||||
let lpb = RefMut::new(&mut last_percentage);
|
||||
let uib1 = uib.clone();
|
||||
let barb1 = barb.clone();
|
||||
|
|
Loading…
Reference in a new issue