Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit fbd8f99

Browse files
Hiding error is user data is present
1 parent 76a11f7 commit fbd8f99

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/InitProjectView.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,13 @@ public override void OnGUI()
6969
GUILayout.FlexibleSpace();
7070
GUILayout.EndHorizontal();
7171

72-
EditorGUILayout.Space();
73-
EditorGUILayout.HelpBox(
74-
"Name and email not set in git. Go into the settings tab and enter the missing information",
75-
MessageType.Error
76-
);
72+
if (!isUserDataPresent)
73+
{
74+
EditorGUILayout.Space();
75+
EditorGUILayout.HelpBox(
76+
"Name and email not set in git. Go into the settings tab and enter the missing information",
77+
MessageType.Error);
78+
}
7779

7880
GUILayout.FlexibleSpace();
7981
}

0 commit comments

Comments
 (0)