From 1c77b9c16fd24e573e5fec60bdf3c73b21ed0ec5 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Thu, 4 Jun 2020 00:16:07 +0300 Subject: [PATCH] Changed button names in SendFilesBox. Fixed #7988. --- Telegram/SourceFiles/boxes/send_files_box.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Telegram/SourceFiles/boxes/send_files_box.cpp b/Telegram/SourceFiles/boxes/send_files_box.cpp index 268566f22..2f1df25c7 100644 --- a/Telegram/SourceFiles/boxes/send_files_box.cpp +++ b/Telegram/SourceFiles/boxes/send_files_box.cpp @@ -1831,11 +1831,7 @@ void SendFilesBox::setupShadows( } void SendFilesBox::prepare() { - _send = addButton( - (_sendType == Api::SendType::Normal - ? tr::lng_send_button() - : tr::lng_schedule_button()), - [=] { send({}); }); + _send = addButton(tr::lng_send_button(), [=] { send({}); }); if (_sendType == Api::SendType::Normal) { SetupSendMenuAndShortcuts( _send, @@ -1853,9 +1849,8 @@ void SendFilesBox::prepare() { } }, lifetime()); - const auto title = tr::lng_stickers_featured_add(tr::now) + qsl("..."); _addFileToAlbum = addLeftButton( - rpl::single(title), + tr::lng_stickers_featured_add(), App::LambdaDelayed(st::historyAttach.ripple.hideDuration, this, [=] { openDialogToAddFileToAlbum(); }));