mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Don't close schedule media box by outside click.
This commit is contained in:
@@ -427,6 +427,7 @@ void SendFilesBox::prepare() {
|
||||
preparePreview();
|
||||
initPreview();
|
||||
SetupShadowsToScrollContent(this, _scroll, _inner->heightValue());
|
||||
setCloseByOutsideClick(false);
|
||||
|
||||
boxClosing() | rpl::start_with_next([=] {
|
||||
if (!_confirmed && _cancelledCallback) {
|
||||
@@ -1437,7 +1438,12 @@ void SendFilesBox::sendScheduled() {
|
||||
? SendMenu::Type::ScheduledToUser
|
||||
: _sendMenuType;
|
||||
const auto callback = [=](Api::SendOptions options) { send(options); };
|
||||
_show->showBox(HistoryView::PrepareScheduleBox(this, type, callback));
|
||||
auto box = HistoryView::PrepareScheduleBox(this, type, callback);
|
||||
const auto weak = Ui::MakeWeak(box.data());
|
||||
_show->showBox(std::move(box));
|
||||
if (const auto strong = weak.data()) {
|
||||
strong->setCloseByOutsideClick(false);
|
||||
}
|
||||
}
|
||||
|
||||
void SendFilesBox::sendWhenOnline() {
|
||||
|
Reference in New Issue
Block a user