From cd5a1980c94d3b43e84714f34f3218d775d8180f Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Tue, 26 Nov 2024 13:35:14 +0300 Subject: [PATCH] Fixed display of button for earn out when withdrawal is locked. --- Telegram/SourceFiles/settings/settings_credits_graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/settings/settings_credits_graphics.cpp b/Telegram/SourceFiles/settings/settings_credits_graphics.cpp index 4a190dc3a..889b7a921 100644 --- a/Telegram/SourceFiles/settings/settings_credits_graphics.cpp +++ b/Telegram/SourceFiles/settings/settings_credits_graphics.cpp @@ -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(),