From 2b2598d2f3cc0294561748c4de26f6b832aaa2a0 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 9 Jul 2021 11:59:54 +0800 Subject: [PATCH] optimize: uncheck amend after commit successfully --- src/Views/Widgets/WorkingCopy.xaml.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Views/Widgets/WorkingCopy.xaml.cs b/src/Views/Widgets/WorkingCopy.xaml.cs index f09da042..8788b5ef 100644 --- a/src/Views/Widgets/WorkingCopy.xaml.cs +++ b/src/Views/Widgets/WorkingCopy.xaml.cs @@ -311,7 +311,11 @@ namespace SourceGit.Views.Widgets { Models.Watcher.SetEnabled(repo.Path, false); var amend = chkAmend.IsChecked == true; 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.Visibility = Visibility.Collapsed; Models.Watcher.SetEnabled(repo.Path, true);