Skip to content
Snippets Groups Projects
Commit 9a0ae22a authored by Stanley Goldman's avatar Stanley Goldman
Browse files

Final tweaks

parent e24d5544
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ namespace GitHub.Unity
private const string PrivateRepoMessage = "You choose who can see and commit to this repository";
private const string PublicRepoMessage = "Anyone can see this repository. You choose who can commit";
private const string PublishViewCreateButton = "Create";
private const string OwnersDefaultText = "Select a user or organization";
private const string OwnersDefaultText = "Select a user or org";
[SerializeField] private string username;
[SerializeField] private string[] owners = { OwnersDefaultText };
......@@ -135,7 +135,7 @@ namespace GitHub.Unity
GUILayout.Label("Owner");
GUI.enabled = !isBusy;
selectedOwner = EditorGUILayout.Popup(0, owners);
selectedOwner = EditorGUILayout.Popup(selectedOwner, owners);
GUI.enabled = true;
}
GUILayout.EndVertical();
......@@ -195,7 +195,7 @@ namespace GitHub.Unity
GUILayout.BeginHorizontal();
{
GUILayout.FlexibleSpace();
GUI.enabled = !string.IsNullOrEmpty(repoName) && !isBusy;
GUI.enabled = !string.IsNullOrEmpty(repoName) && !isBusy && selectedOwner != 0;
if (GUILayout.Button(PublishViewCreateButton))
{
isBusy = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment