UnityEditor.SpriteEditorWindow.DoApplyRevertGUI C# (CSharp) Method

DoApplyRevertGUI() private method

private DoApplyRevertGUI ( ) : void
return void
        private void DoApplyRevertGUI()
        {
            EditorGUI.BeginDisabledGroup(!this.textureIsDirty);
            if (GUILayout.Button("Revert", EditorStyles.toolbarButton, new GUILayoutOption[0]))
            {
                this.DoRevert();
            }
            if (GUILayout.Button("Apply", EditorStyles.toolbarButton, new GUILayoutOption[0]))
            {
                this.DoApply();
            }
            EditorGUI.EndDisabledGroup();
        }