2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Improve phrases in share voice chat link box.

This commit is contained in:
John Preston
2021-03-12 22:22:19 +04:00
parent ed4dea2b0e
commit ce84d9c84d
5 changed files with 19 additions and 6 deletions

View File

@@ -173,6 +173,9 @@ ShareBox::ShareBox(QWidget*, Descriptor &&descriptor)
tr::lng_photos_comment()),
st::shareCommentPadding)
, _bottomWidget(std::move(_descriptor.bottomWidget))
, _copyLinkText(_descriptor.copyLinkText
? std::move(_descriptor.copyLinkText)
: tr::lng_share_copy_link())
, _searchTimer([=] { searchByUsername(); }) {
if (_bottomWidget) {
_bottomWidget->setParent(this);
@@ -452,7 +455,7 @@ void ShareBox::createButtons() {
[=] { submitSilent(); },
[=] { submitScheduled(); });
} else if (_descriptor.copyCallback) {
addButton(tr::lng_share_copy_link(), [=] { copyLink(); });
addButton(_copyLinkText.value(), [=] { copyLink(); });
}
addButton(tr::lng_cancel(), [=] { closeBox(); });
}