@@ -8,12 +8,10 @@ namespace GitHub.Unity
8
8
class InitProjectView : Subview
9
9
{
10
10
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" ;
13
12
14
13
[ NonSerialized ] private bool isBusy ;
15
14
16
- [ NonSerialized ] private string errorMessage ;
17
15
[ NonSerialized ] private bool isUserDataPresent ;
18
16
[ NonSerialized ] private bool userDataHasChanged ;
19
17
@@ -74,9 +72,7 @@ public override void OnGUI()
74
72
if ( ! isUserDataPresent )
75
73
{
76
74
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 ) ;
80
76
}
81
77
82
78
GUILayout . FlexibleSpace ( ) ;
@@ -101,10 +97,8 @@ private void CheckForUser()
101
97
var username = strings [ 0 ] ;
102
98
var email = strings [ 1 ] ;
103
99
104
-
105
100
isBusy = false ;
106
101
isUserDataPresent = success && ! String . IsNullOrEmpty ( username ) && ! String . IsNullOrEmpty ( email ) ;
107
- errorMessage = isUserDataPresent ? null : NoUserOrEmailError ;
108
102
109
103
Logger . Trace ( "Finally: {0}" , isUserDataPresent ) ;
110
104
0 commit comments