Conditionalize the Sync button.