mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Fixed dialog dragging with pressed quick dialog action.
This commit is contained in:
parent
c11a7589e2
commit
feb1d4ebcc
1 changed files with 12 additions and 5 deletions
|
@ -2015,6 +2015,11 @@ void InnerWidget::checkReorderPinnedStart(QPoint localPosition) {
|
||||||
< style::ConvertScale(kStartReorderThreshold)) {
|
< style::ConvertScale(kStartReorderThreshold)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if ((_pressButton == Qt::MiddleButton)
|
||||||
|
&& (Core::App().settings().quickDialogAction()
|
||||||
|
!= Dialogs::Ui::QuickDialogAction::Disabled)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
_dragging = _pressed;
|
_dragging = _pressed;
|
||||||
startReorderPinned(localPosition);
|
startReorderPinned(localPosition);
|
||||||
}
|
}
|
||||||
|
@ -2307,11 +2312,13 @@ void InnerWidget::mousePressReleased(
|
||||||
it->second->ripple->lastStop();
|
it->second->ripple->lastStop();
|
||||||
it->second->rippleFg->lastStop();
|
it->second->rippleFg->lastStop();
|
||||||
}
|
}
|
||||||
PerformQuickDialogAction(
|
if (pressed == _selected) {
|
||||||
_controller,
|
PerformQuickDialogAction(
|
||||||
history->peer,
|
_controller,
|
||||||
it->second->action,
|
history->peer,
|
||||||
_filterId);
|
it->second->action,
|
||||||
|
_filterId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue