mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
parent
913083ebc6
commit
70ed43b811
1 changed files with 7 additions and 4 deletions
|
@ -752,14 +752,17 @@ FillMenuResult FillSendMenu(
|
||||||
&icons.menuPrice);
|
&icons.menuPrice);
|
||||||
}
|
}
|
||||||
|
|
||||||
return showForEffect
|
if (showForEffect) {
|
||||||
? AttachSendMenuEffect(
|
return AttachSendMenuEffect(
|
||||||
menu,
|
menu,
|
||||||
showForEffect,
|
showForEffect,
|
||||||
details,
|
details,
|
||||||
action,
|
action,
|
||||||
desiredPositionOverride)
|
desiredPositionOverride);
|
||||||
: FillMenuResult::Prepared;
|
}
|
||||||
|
const auto position = desiredPositionOverride.value_or(QCursor::pos());
|
||||||
|
menu->prepareGeometryFor(position);
|
||||||
|
return FillMenuResult::Prepared;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetupMenuAndShortcuts(
|
void SetupMenuAndShortcuts(
|
||||||
|
|
Loading…
Add table
Reference in a new issue