@@ -8,12 +8,10 @@ namespace GitHub.Unity
88 class InitProjectView : Subview
99 {
1010 private const string NoRepoTitle = "To begin using GitHub, initialize a git repository" ;
11- private const string NoRepoDescription = "Initialize a Git repository to track changes and collaborate with others." ;
12- private const string NoUserOrEmailError = "Name and Email must be configured in Settings" ;
11+ private const string NoUserOrEmailError = "Name and email not set in git. Go into the settings tab and enter the missing information" ;
1312
1413 [ NonSerialized ] private bool isBusy ;
1514
16- [ NonSerialized ] private string errorMessage ;
1715 [ NonSerialized ] private bool isUserDataPresent ;
1816 [ NonSerialized ] private bool userDataHasChanged ;
1917
@@ -74,9 +72,7 @@ public override void OnGUI()
7472 if ( ! isUserDataPresent )
7573 {
7674 EditorGUILayout . Space ( ) ;
77- EditorGUILayout . HelpBox (
78- "Name and email not set in git. Go into the settings tab and enter the missing information" ,
79- MessageType . Error ) ;
75+ EditorGUILayout . HelpBox ( NoUserOrEmailError , MessageType . Error ) ;
8076 }
8177
8278 GUILayout . FlexibleSpace ( ) ;
@@ -101,10 +97,8 @@ private void CheckForUser()
10197 var username = strings [ 0 ] ;
10298 var email = strings [ 1 ] ;
10399
104-
105100 isBusy = false ;
106101 isUserDataPresent = success && ! String . IsNullOrEmpty ( username ) && ! String . IsNullOrEmpty ( email ) ;
107- errorMessage = isUserDataPresent ? null : NoUserOrEmailError ;
108102
109103 Logger . Trace ( "Finally: {0}" , isUserDataPresent ) ;
110104
0 commit comments