Changed button names in SendFilesBox.

Fixed #7988.
This commit is contained in:
23rd 2020-06-04 00:16:07 +03:00 committed by John Preston
parent 06629ad171
commit 1c77b9c16f
1 changed files with 2 additions and 7 deletions

View File

@ -1831,11 +1831,7 @@ void SendFilesBox::setupShadows(
} }
void SendFilesBox::prepare() { void SendFilesBox::prepare() {
_send = addButton( _send = addButton(tr::lng_send_button(), [=] { send({}); });
(_sendType == Api::SendType::Normal
? tr::lng_send_button()
: tr::lng_schedule_button()),
[=] { send({}); });
if (_sendType == Api::SendType::Normal) { if (_sendType == Api::SendType::Normal) {
SetupSendMenuAndShortcuts( SetupSendMenuAndShortcuts(
_send, _send,
@ -1853,9 +1849,8 @@ void SendFilesBox::prepare() {
} }
}, lifetime()); }, lifetime());
const auto title = tr::lng_stickers_featured_add(tr::now) + qsl("...");
_addFileToAlbum = addLeftButton( _addFileToAlbum = addLeftButton(
rpl::single(title), tr::lng_stickers_featured_add(),
App::LambdaDelayed(st::historyAttach.ripple.hideDuration, this, [=] { App::LambdaDelayed(st::historyAttach.ripple.hideDuration, this, [=] {
openDialogToAddFileToAlbum(); openDialogToAddFileToAlbum();
})); }));