2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Separate form controller from view controller.

This commit is contained in:
John Preston
2018-03-29 23:49:31 +04:00
parent b0a9d26a94
commit a2dabfde56
19 changed files with 668 additions and 302 deletions

View File

@@ -1431,11 +1431,11 @@ void SendFilesBox::prepare() {
setupCaption();
initSendWay();
preparePreview();
subscribe(boxClosing, [this] {
boxClosing() | rpl::start_with_next([=] {
if (!_confirmed && _cancelledCallback) {
_cancelledCallback();
}
});
}, lifetime());
}
void SendFilesBox::initSendWay() {