SAN ANTONIO — Democratic gubernatorial candidate Lupe Valdez on Friday defended her tenure as Dallas County sheriff, holding firm against criticism of her office’s transparency and a 2015 showdown with Gov. Greg Abbott over immigration policy.

Speaking with reporters here at a campaign event, Valdez, who was sheriff from 2005 until she resigned to run for governor late last year, said she thought there was “more than enough transparency as long as the law allowed” while she had the job.

She has faced scrutiny of her handling of inmate deaths at the Dallas County jail, but she insisted she had been diligent, letting investigations develop before releasing information that could jeopardize them.

“What I will always do is be as transparent as is possible at the moment,” Valdez said, alluding to those who have pushed her for greater transparency. “At some time or another, they got all the information they wanted — they just didn’t get it when they wanted it. And I couldn’t give it to them. It’s about, I’d rather do things right than quickly — much, much rather do it right than quickly.”