Fixed display of button for earn out when withdrawal is locked.

This commit is contained in:
23rd 2024-11-26 13:35:14 +03:00
parent 0e35107e17
commit cd5a1980c9

View file

@ -2021,7 +2021,7 @@ void AddWithdrawalWidget(
lockedLabel->paintRequest() | rpl::start_with_next([=] {
auto p = QPainter(lockedLabel);
p.setPen(state->locked ? QPen(lockedColor) : stButton.textFg->p);
if (state->dateIsNull) {
if (state->dateIsNull && state->locked) {
p.setFont(st::channelEarnSemiboldLabel.style.font);
p.drawText(
lockedLabel->rect(),