mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
feature(Dashboard): add configuration for opened repository
1. User name and email for single repository 2. Simple commit template
This commit is contained in:
parent
3c896c33be
commit
53c65faecb
8 changed files with 221 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue