mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Replaced singleShot with InvokeQueued in OverlayWidget.
This commit is contained in:
parent
b6f17e1cea
commit
dd7598a701
1 changed files with 2 additions and 2 deletions
|
@ -4099,7 +4099,7 @@ void OverlayWidget::mouseReleaseEvent(QMouseEvent *e) {
|
||||||
} else if (_over == OverIcon && _down == OverIcon) {
|
} else if (_over == OverIcon && _down == OverIcon) {
|
||||||
onDocClick();
|
onDocClick();
|
||||||
} else if (_over == OverMore && _down == OverMore) {
|
} else if (_over == OverMore && _down == OverMore) {
|
||||||
QTimer::singleShot(0, this, SLOT(onDropdown()));
|
InvokeQueued(this, [=] { onDropdown(); });
|
||||||
} else if (_over == OverClose && _down == OverClose) {
|
} else if (_over == OverClose && _down == OverClose) {
|
||||||
close();
|
close();
|
||||||
} else if (_over == OverVideo && _down == OverVideo) {
|
} else if (_over == OverVideo && _down == OverVideo) {
|
||||||
|
@ -4339,7 +4339,7 @@ void OverlayWidget::onMenuDestroy(QObject *obj) {
|
||||||
activateControls();
|
activateControls();
|
||||||
}
|
}
|
||||||
_receiveMouse = false;
|
_receiveMouse = false;
|
||||||
QTimer::singleShot(0, this, SLOT(receiveMouse()));
|
InvokeQueued(this, [=] { receiveMouse(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
void OverlayWidget::receiveMouse() {
|
void OverlayWidget::receiveMouse() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue