2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Improve schedule box design.

This commit is contained in:
John Preston
2019-08-13 21:01:39 +01:00
parent debeb61540
commit fb96d2eef8
7 changed files with 605 additions and 47 deletions

View File

@@ -1963,10 +1963,15 @@ void SendFilesBox::sendSilent() {
}
void SendFilesBox::sendScheduled() {
Ui::show(Box(HistoryView::ScheduleBox, crl::guard(this, [=](
Api::SendOptions options) {
const auto callback = crl::guard(this, [=](Api::SendOptions options) {
send(options);
})), LayerOption::KeepOther);
});
Ui::show(
Box(
HistoryView::ScheduleBox,
callback,
HistoryView::DefaultScheduleTime()),
LayerOption::KeepOther);
}
SendFilesBox::~SendFilesBox() = default;