mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-04 16:35:44 +00:00
Fixed display of button for earn out when withdrawal is locked.
This commit is contained in:
@@ -2021,7 +2021,7 @@ void AddWithdrawalWidget(
|
|||||||
lockedLabel->paintRequest() | rpl::start_with_next([=] {
|
lockedLabel->paintRequest() | rpl::start_with_next([=] {
|
||||||
auto p = QPainter(lockedLabel);
|
auto p = QPainter(lockedLabel);
|
||||||
p.setPen(state->locked ? QPen(lockedColor) : stButton.textFg->p);
|
p.setPen(state->locked ? QPen(lockedColor) : stButton.textFg->p);
|
||||||
if (state->dateIsNull) {
|
if (state->dateIsNull && state->locked) {
|
||||||
p.setFont(st::channelEarnSemiboldLabel.style.font);
|
p.setFont(st::channelEarnSemiboldLabel.style.font);
|
||||||
p.drawText(
|
p.drawText(
|
||||||
lockedLabel->rect(),
|
lockedLabel->rect(),
|
||||||
|
Reference in New Issue
Block a user