mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 15:47:11 +02:00
Close large video tile by click anywhere.
This commit is contained in:
parent
f1f7330bf6
commit
945411274f
1 changed files with 2 additions and 6 deletions
|
@ -173,7 +173,7 @@ void Viewport::handleMouseRelease(QPoint position, Qt::MouseButton button) {
|
|||
tile->row()->showContextMenu();
|
||||
} else if (!wide()
|
||||
|| (_hasTwoOrMore && !_large)
|
||||
|| pressed.element == Selection::Element::BackButton) {
|
||||
|| pressed.element != Selection::Element::PinButton) {
|
||||
_clicks.fire_copy(tile->endpoint());
|
||||
} else if (pressed.element == Selection::Element::PinButton) {
|
||||
_pinToggles.fire(!tile->pinned());
|
||||
|
@ -771,11 +771,7 @@ void Viewport::setSelected(Selection value) {
|
|||
}
|
||||
|
||||
void Viewport::updateCursor() {
|
||||
const auto pointer = _selected.tile
|
||||
&& (!wide()
|
||||
|| (_hasTwoOrMore && !_large)
|
||||
|| _selected.element == Selection::Element::PinButton
|
||||
|| _selected.element == Selection::Element::BackButton);
|
||||
const auto pointer = _selected.tile && (!wide() || _hasTwoOrMore);
|
||||
widget()->setCursor(pointer ? style::cur_pointer : style::cur_default);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue