mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix crash in share box scheduling.
This commit is contained in:
parent
dfd07a4f4f
commit
e3030a168f
1 changed files with 4 additions and 1 deletions
|
@ -562,6 +562,9 @@ void ShareBox::showMenu(not_null<Ui::RpWidget*> parent) {
|
||||||
submit(action.options);
|
submit(action.options);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
const auto st = _descriptor.st.scheduleBox
|
||||||
|
? *_descriptor.st.scheduleBox
|
||||||
|
: HistoryView::ScheduleBoxStyleArgs();
|
||||||
uiShow()->showBox(
|
uiShow()->showBox(
|
||||||
HistoryView::PrepareScheduleBox(
|
HistoryView::PrepareScheduleBox(
|
||||||
this,
|
this,
|
||||||
|
@ -570,7 +573,7 @@ void ShareBox::showMenu(not_null<Ui::RpWidget*> parent) {
|
||||||
[=](Api::SendOptions options) { submit(options); },
|
[=](Api::SendOptions options) { submit(options); },
|
||||||
action.options,
|
action.options,
|
||||||
HistoryView::DefaultScheduleTime(),
|
HistoryView::DefaultScheduleTime(),
|
||||||
*_descriptor.st.scheduleBox));
|
st));
|
||||||
});
|
});
|
||||||
_menu->setForcedVerticalOrigin(Ui::PopupMenu::VerticalOrigin::Bottom);
|
_menu->setForcedVerticalOrigin(Ui::PopupMenu::VerticalOrigin::Bottom);
|
||||||
const auto result = FillSendMenu(
|
const auto result = FillSendMenu(
|
||||||
|
|
Loading…
Add table
Reference in a new issue