void DoCancelMergesButton( bool isEnabled, IncomingChangesViewLogic incomingChangesViewLogic) { GUI.enabled = isEnabled; if (DrawActionButton.For(PlasticLocalization.GetString( PlasticLocalization.Name.CancelButton))) { incomingChangesViewLogic.Cancel(); mIsCancelMergesButtonEnabled = false; } GUI.enabled = true; }
void DoCancelMergesButton( bool isEnabled, IncomingChangesViewLogic incomingChangesViewLogic) { GUI.enabled = isEnabled; if (GUILayout.Button(PlasticLocalization.GetString( PlasticLocalization.Name.CancelButton), EditorStyles.toolbarButton, GUILayout.Width(UnityConstants.REGULAR_BUTTON_WIDTH))) { incomingChangesViewLogic.Cancel(); mIsCancelMergesButtonEnabled = false; } GUI.enabled = true; }
static bool DoCancelMergesButton( bool isEnabled, IncomingChangesViewLogic incomingChangesViewLogic) { bool shouldCancelMergesButtonEnabled = true; GUI.enabled = isEnabled; if (DrawActionButton.For(PlasticLocalization.GetString( PlasticLocalization.Name.CancelButton))) { incomingChangesViewLogic.Cancel(); shouldCancelMergesButtonEnabled = false; } GUI.enabled = true; return(shouldCancelMergesButtonEnabled); }