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

Allow showing boxes in passport panel.

This commit is contained in:
John Preston
2018-04-06 20:23:09 +04:00
parent f1519b76f6
commit d0e854e9d8
32 changed files with 293 additions and 236 deletions

View File

@@ -1361,7 +1361,7 @@ void SendFilesBox::prepareSingleFilePreview() {
Expects(_list.files.size() == 1);
const auto &file = _list.files[0];
const auto media = SingleMediaPreview::Create(this, controller(), file);
const auto media = SingleMediaPreview::Create(this, _controller, file);
if (media) {
if (!media->canSendAsPhoto()) {
_compressConfirm = CompressConfirm::None;
@@ -1424,8 +1424,6 @@ void SendFilesBox::setupShadows(
}
void SendFilesBox::prepare() {
Expects(controller() != nullptr);
_send = addButton(langFactory(lng_send_button), [this] { send(); });
addButton(langFactory(lng_cancel), [this] { closeBox(); });
setupCaption();