mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 05:07:10 +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);
|
||||
return;
|
||||
}
|
||||
const auto st = _descriptor.st.scheduleBox
|
||||
? *_descriptor.st.scheduleBox
|
||||
: HistoryView::ScheduleBoxStyleArgs();
|
||||
uiShow()->showBox(
|
||||
HistoryView::PrepareScheduleBox(
|
||||
this,
|
||||
|
@ -570,7 +573,7 @@ void ShareBox::showMenu(not_null<Ui::RpWidget*> parent) {
|
|||
[=](Api::SendOptions options) { submit(options); },
|
||||
action.options,
|
||||
HistoryView::DefaultScheduleTime(),
|
||||
*_descriptor.st.scheduleBox));
|
||||
st));
|
||||
});
|
||||
_menu->setForcedVerticalOrigin(Ui::PopupMenu::VerticalOrigin::Bottom);
|
||||
const auto result = FillSendMenu(
|
||||
|
|
Loading…
Add table
Reference in a new issue