File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -349,12 +349,15 @@ private void OnGUI()
349349
350350 info . m_URL = EditorGUILayout . TextField ( "URL" , info . m_URL ) ;
351351
352- if ( info . m_URL . StartsWith ( "https://gateway-a" ) )
353- info . m_Apikey = EditorGUILayout . TextField ( "API Key" , info . m_Apikey ) ;
354- else
352+ if ( ! string . IsNullOrEmpty ( info . m_URL ) )
355353 {
356- info . m_User = EditorGUILayout . TextField ( "User" , info . m_User ) ;
357- info . m_Password = EditorGUILayout . TextField ( "Password" , info . m_Password ) ;
354+ if ( info . m_URL . StartsWith ( "https://gateway-a" ) )
355+ info . m_Apikey = EditorGUILayout . TextField ( "API Key" , info . m_Apikey ) ;
356+ else
357+ {
358+ info . m_User = EditorGUILayout . TextField ( "User" , info . m_User ) ;
359+ info . m_Password = EditorGUILayout . TextField ( "Password" , info . m_Password ) ;
360+ }
358361 }
359362
360363 if ( GUILayout . Button ( "Delete" ) )
You can’t perform that action at this time.
0 commit comments