mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-05-28 10:43:57 +02:00
Fixed ability to trigger quick dialog action with non-middle button.
This commit is contained in:
parent
63578affa4
commit
e0b1ed87e8
1 changed files with 5 additions and 2 deletions
|
@ -2387,7 +2387,7 @@ void InnerWidget::mousePressReleased(
|
|||
if (_chatPreviewScheduled) {
|
||||
_controller->cancelScheduledPreview();
|
||||
}
|
||||
_pressButton = Qt::NoButton;
|
||||
const auto pressButton = base::take(_pressButton);
|
||||
|
||||
const auto wasDragging = finishReorderOnRelease();
|
||||
|
||||
|
@ -2420,7 +2420,10 @@ void InnerWidget::mousePressReleased(
|
|||
if (_pressedRightButtonData && _pressedRightButtonData->ripple) {
|
||||
_pressedRightButtonData->ripple->lastStop();
|
||||
}
|
||||
if (_activeQuickAction && pressed && !_activeQuickAction->data) {
|
||||
if ((pressButton == Qt::MiddleButton)
|
||||
&& _activeQuickAction
|
||||
&& pressed
|
||||
&& !_activeQuickAction->data) {
|
||||
if (const auto history = pressed->history()) {
|
||||
const auto raw = _activeQuickAction.get();
|
||||
if (raw->ripple) {
|
||||
|
|
Loading…
Add table
Reference in a new issue