I'm really glad you and your vet figured out the problem.
Hopefully she'll get happier when the infection is gone.