mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 11:52:58 +00:00
Replaced positional swipe init args with typed data struct.
This commit is contained in:
@@ -774,14 +774,14 @@ void Widget::setupSwipeBack() {
|
||||
}
|
||||
};
|
||||
|
||||
auto init = [=](int top, Qt::LayoutDirection direction) {
|
||||
top -= _inner->y();
|
||||
auto init = [=](Ui::Controls::SwipeHandlerInitData data) {
|
||||
const auto top = data.cursorPosition.y() - _inner->y();
|
||||
_swipeBackIconMirrored = false;
|
||||
_swipeBackMirrored = false;
|
||||
if (_childListShown.current()) {
|
||||
return Ui::Controls::SwipeHandlerFinishData();
|
||||
}
|
||||
const auto isRightToLeft = direction == Qt::RightToLeft;
|
||||
const auto isRightToLeft = data.direction == Qt::RightToLeft;
|
||||
const auto action = Core::App().settings().quickDialogAction();
|
||||
const auto isDisabled = action == Ui::QuickDialogAction::Disabled;
|
||||
if (_inner) {
|
||||
|
||||
Reference in New Issue
Block a user