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