The Belarusian avenged her two defeats to Barty this season and picked up a first WTA clay-court title.