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:
@@ -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(); });
|
||||
}
|
||||
|
Reference in New Issue
Block a user