mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 20:54:59 +00:00
feature<WorkingCopy>: show waiting panel while commiting
This commit is contained in:
parent
c1b9fbaddd
commit
9641613bdb
3 changed files with 7 additions and 3 deletions
|
@ -914,7 +914,7 @@ namespace SourceGit.UI {
|
|||
}
|
||||
}
|
||||
|
||||
private async void Commit(object sender, RoutedEventArgs e) {
|
||||
private void Commit(object sender, RoutedEventArgs e) {
|
||||
foreach (var c in UnstagedListData) {
|
||||
if (c.IsConflit) {
|
||||
App.RaiseError("You have unsolved conflicts in your working copy!");
|
||||
|
@ -933,8 +933,10 @@ namespace SourceGit.UI {
|
|||
txtCommitMsg.GetBindingExpression(TextBox.TextProperty).UpdateSource();
|
||||
if (Validation.GetHasError(txtCommitMsg)) return;
|
||||
|
||||
bool succ = await Task.Run(() => Repo.DoCommit(CommitMessage, amend));
|
||||
if (succ) ClearMessage();
|
||||
Waiting.Show(Repo, "Text.Waiting.Commit", () => {
|
||||
bool succ = Repo.DoCommit(CommitMessage, amend);
|
||||
if (succ) Dispatcher.Invoke(ClearMessage);
|
||||
});
|
||||
}
|
||||
|
||||
private async void CommitAndPush(object sender, RoutedEventArgs e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue