feature: clear commit message when toggle off Amend
Some checks failed
Continuous Integration / Build (push) Has been cancelled
Continuous Integration / Prepare version string (push) Has been cancelled
Continuous Integration / Package (push) Has been cancelled

This commit is contained in:
leo 2025-01-03 14:27:54 +08:00
parent 8ebf4d76d6
commit 0628e3d3f7
No known key found for this signature in database

View file

@ -82,6 +82,10 @@ namespace SourceGit.ViewModels
CommitMessage = new Commands.QueryCommitFullMessage(_repo.FullPath, currentBranch.Head).Result(); CommitMessage = new Commands.QueryCommitFullMessage(_repo.FullPath, currentBranch.Head).Result();
} }
else
{
CommitMessage = string.Empty;
}
Staged = GetStagedChanges(); Staged = GetStagedChanges();
SelectedStaged = []; SelectedStaged = [];