Add UI feedback for checkpoint restoration (#27203)
Release Notes: - N/A Co-authored-by: Agus Zubiaga <hi@aguz.me> Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
This commit is contained in:
parent
f365b80814
commit
7feb50fafe
3 changed files with 113 additions and 24 deletions
|
@ -542,7 +542,8 @@ impl GitStore {
|
|||
let mut tasks = Vec::new();
|
||||
for (dot_git_abs_path, checkpoint) in checkpoint.checkpoints_by_dot_git_abs_path {
|
||||
if let Some(repository) = repositories_by_dot_git_abs_path.get(&dot_git_abs_path) {
|
||||
tasks.push(repository.read(cx).restore_checkpoint(checkpoint));
|
||||
let restore = repository.read(cx).restore_checkpoint(checkpoint);
|
||||
tasks.push(async move { restore.await? });
|
||||
}
|
||||
}
|
||||
cx.background_spawn(async move {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue