UnityEditor.PopupWindowContentForNewLibrary.CreateLibraryAndCloseWindow C# (CSharp) Method

CreateLibraryAndCloseWindow() private method

private CreateLibraryAndCloseWindow ( EditorWindow editorWindow ) : void
editorWindow EditorWindow
return void
        private void CreateLibraryAndCloseWindow(EditorWindow editorWindow)
        {
            PresetFileLocation location = s_Texts.fileLocationOrder[this.m_SelectedIndexInPopup];
            this.m_ErrorString = this.m_CreateLibraryCallback.Invoke(this.m_NewLibraryName, location);
            if (string.IsNullOrEmpty(this.m_ErrorString))
            {
                editorWindow.Close();
            }
        }