This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/UnityExtension/Assets/Editor/GitHub.Unity/UI Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class PublishView : Subview
12
12
private const string PrivateRepoMessage = "You choose who can see and commit to this repository" ;
13
13
private const string PublicRepoMessage = "Anyone can see this repository. You choose who can commit" ;
14
14
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 " ;
16
16
17
17
[ SerializeField ] private string username ;
18
18
[ SerializeField ] private string [ ] owners = { OwnersDefaultText } ;
@@ -135,7 +135,7 @@ public override void OnGUI()
135
135
GUILayout . Label ( "Owner" ) ;
136
136
137
137
GUI . enabled = ! isBusy ;
138
- selectedOwner = EditorGUILayout . Popup ( 0 , owners ) ;
138
+ selectedOwner = EditorGUILayout . Popup ( selectedOwner , owners ) ;
139
139
GUI . enabled = true ;
140
140
}
141
141
GUILayout . EndVertical ( ) ;
@@ -195,7 +195,7 @@ public override void OnGUI()
195
195
GUILayout . BeginHorizontal ( ) ;
196
196
{
197
197
GUILayout . FlexibleSpace ( ) ;
198
- GUI . enabled = ! string . IsNullOrEmpty ( repoName ) && ! isBusy ;
198
+ GUI . enabled = ! string . IsNullOrEmpty ( repoName ) && ! isBusy && selectedOwner != 0 ;
199
199
if ( GUILayout . Button ( PublishViewCreateButton ) )
200
200
{
201
201
isBusy = true ;
You can’t perform that action at this time.
0 commit comments