mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
optimize<WorkingCopy>: uncheck amend after commit successfully
This commit is contained in:
parent
0b690edba8
commit
2b2598d2f3
1 changed files with 5 additions and 1 deletions
|
@ -311,7 +311,11 @@ namespace SourceGit.Views.Widgets {
|
||||||
Models.Watcher.SetEnabled(repo.Path, false);
|
Models.Watcher.SetEnabled(repo.Path, false);
|
||||||
var amend = chkAmend.IsChecked == true;
|
var amend = chkAmend.IsChecked == true;
|
||||||
var succ = await Task.Run(() => new Commands.Commit(repo.Path, CommitMessage, amend).Exec());
|
var succ = await Task.Run(() => new Commands.Commit(repo.Path, CommitMessage, amend).Exec());
|
||||||
if (succ) ClearMessage();
|
if (succ) {
|
||||||
|
ClearMessage();
|
||||||
|
if (amend) chkAmend.IsChecked = false;
|
||||||
|
}
|
||||||
|
|
||||||
iconCommitting.IsAnimating = false;
|
iconCommitting.IsAnimating = false;
|
||||||
iconCommitting.Visibility = Visibility.Collapsed;
|
iconCommitting.Visibility = Visibility.Collapsed;
|
||||||
Models.Watcher.SetEnabled(repo.Path, true);
|
Models.Watcher.SetEnabled(repo.Path, true);
|
||||||
|
|
Loading…
Reference in a new issue