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

Commit 9a0ae22

Browse files
Final tweaks
1 parent e24d554 commit 9a0ae22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class PublishView : Subview
1212
private const string PrivateRepoMessage = "You choose who can see and commit to this repository";
1313
private const string PublicRepoMessage = "Anyone can see this repository. You choose who can commit";
1414
private const string PublishViewCreateButton = "Create";
15-
private const string OwnersDefaultText = "Select a user or organization";
15+
private const string OwnersDefaultText = "Select a user or org";
1616

1717
[SerializeField] private string username;
1818
[SerializeField] private string[] owners = { OwnersDefaultText };
@@ -135,7 +135,7 @@ public override void OnGUI()
135135
GUILayout.Label("Owner");
136136

137137
GUI.enabled = !isBusy;
138-
selectedOwner = EditorGUILayout.Popup(0, owners);
138+
selectedOwner = EditorGUILayout.Popup(selectedOwner, owners);
139139
GUI.enabled = true;
140140
}
141141
GUILayout.EndVertical();
@@ -195,7 +195,7 @@ public override void OnGUI()
195195
GUILayout.BeginHorizontal();
196196
{
197197
GUILayout.FlexibleSpace();
198-
GUI.enabled = !string.IsNullOrEmpty(repoName) && !isBusy;
198+
GUI.enabled = !string.IsNullOrEmpty(repoName) && !isBusy && selectedOwner != 0;
199199
if (GUILayout.Button(PublishViewCreateButton))
200200
{
201201
isBusy = true;

0 commit comments

Comments
 (0)