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
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 ;
You can’t perform that action at this time.
0 commit comments