feature(Dashboard): add configuration for opened repository

1. User name and email for single repository
2. Simple commit template
This commit is contained in:
leo 2020-07-21 13:35:59 +08:00
parent 3c896c33be
commit 53c65faecb
8 changed files with 221 additions and 3 deletions

View file

@ -697,6 +697,15 @@ namespace SourceGit.UI {
#endregion
#region COMMIT_PANEL
private void CommitMsgGotFocus(object sender, RoutedEventArgs e) {
var textBox = sender as TextBox;
if (textBox == null) return;
if (string.IsNullOrEmpty(textBox.Text) && !string.IsNullOrEmpty(Repo.CommitTemplate)) {
textBox.Text = Repo.CommitTemplate;
}
}
private void CommitMsgPreviewMouseWheel(object sender, MouseWheelEventArgs e) {
var textBox = sender as TextBox;
if (textBox == null) return;