make loading bar start as soon as connection is established

This commit is contained in:
Daniella 2022-08-23 09:51:39 +02:00
parent ba9003a88c
commit bd3e770a0d

View file

@ -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();