mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Don't open stories from userpic in narrow chats mode.
This commit is contained in:
parent
87206a6c79
commit
daef7faaa4
1 changed files with 2 additions and 1 deletions
|
@ -3336,7 +3336,8 @@ bool InnerWidget::chooseRow(
|
||||||
Qt::KeyboardModifiers modifiers) {
|
Qt::KeyboardModifiers modifiers) {
|
||||||
row.newWindow = (modifiers & Qt::ControlModifier);
|
row.newWindow = (modifiers & Qt::ControlModifier);
|
||||||
row.userpicClick = (_lastRowLocalMouseX >= 0)
|
row.userpicClick = (_lastRowLocalMouseX >= 0)
|
||||||
&& (_lastRowLocalMouseX < _st->nameLeft);
|
&& (_lastRowLocalMouseX < _st->nameLeft)
|
||||||
|
&& (width() > _narrowWidth);
|
||||||
return row;
|
return row;
|
||||||
};
|
};
|
||||||
auto chosen = modifyChosenRow(computeChosenRow(), modifiers);
|
auto chosen = modifyChosenRow(computeChosenRow(), modifiers);
|
||||||
|
|
Loading…
Add table
Reference in a new issue