ux: add missing progress description

This commit is contained in:
leo 2024-06-03 10:17:47 +08:00
parent 0e6a08860a
commit 6a98af17e4
3 changed files with 3 additions and 0 deletions

View file

@ -126,6 +126,7 @@ namespace SourceGit.ViewModels
} }
else else
{ {
SetProgressDescription($"Create new branch '{_name}'");
Commands.Branch.Create(_repo.FullPath, _name, _baseOnRevision); Commands.Branch.Create(_repo.FullPath, _name, _baseOnRevision);
} }

View file

@ -42,6 +42,7 @@ namespace SourceGit.ViewModels
break; break;
} }
SetProgressDescription($"Git Flow - finishing {_branch.Name} ...");
var succ = new Commands.GitFlow(_repo.FullPath).Finish(_type, branch, KeepBranch); var succ = new Commands.GitFlow(_repo.FullPath).Finish(_type, branch, KeepBranch);
CallUIThread(() => _repo.SetWatcherEnabled(true)); CallUIThread(() => _repo.SetWatcherEnabled(true));
return succ; return succ;

View file

@ -65,6 +65,7 @@ namespace SourceGit.ViewModels
_repo.SetWatcherEnabled(false); _repo.SetWatcherEnabled(false);
return Task.Run(() => return Task.Run(() =>
{ {
SetProgressDescription($"Git Flow - starting {_prefix}{_name} ...");
var succ = new Commands.GitFlow(_repo.FullPath).Start(_type, _name); var succ = new Commands.GitFlow(_repo.FullPath).Start(_type, _name);
CallUIThread(() => _repo.SetWatcherEnabled(true)); CallUIThread(() => _repo.SetWatcherEnabled(true));
return succ; return succ;