mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 06:19:44 +00:00
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:
@@ -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?;
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ impl ProgressInfo {
|
||||
}
|
||||
|
||||
SetupStatus {
|
||||
total_bytes,
|
||||
total_bytes: Some(total_bytes),
|
||||
bytes_transferred,
|
||||
complete: false,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user