better migration progress bar (#1993)

* better migration progress bar

* show different messages based on setup type and fix modal height

* type safety

Co-authored-by: Matt Hill <matthewonthemoon@gmail.com>
This commit is contained in:
Aiden McClelland
2022-11-29 11:45:46 -07:00
committed by GitHub
parent ccb85737f7
commit 837d4c1597
15 changed files with 120 additions and 90 deletions

View File

@@ -358,11 +358,11 @@ async fn perform_backup<Db: DbHandle>(
.await;
let mut tx = db.begin().await?;
let lock_package = crate::db::DatabaseModel::new()
crate::db::DatabaseModel::new()
.package_data()
.idx(&package_id)
.lock(&mut tx, LockType::Write)
.await;
.await?;
installed_model.lock(&mut tx, LockType::Write).await?;

View File

@@ -179,7 +179,7 @@ impl ProgressInfo {
}
SetupStatus {
total_bytes,
total_bytes: Some(total_bytes),
bytes_transferred,
complete: false,
}