mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 07:25:46 +00:00
Refactored checking of last input while notifications are displayed.
- Removed condition for Windows platform only. - Added smooth hiding of notifications in case video is watched or voice message is recorded. - psUserActionDone() was completely replaced with Core::App().updateNonIdle().
This commit is contained in:
@@ -233,7 +233,7 @@ bool Application::eventFilter(QObject *object, QEvent *e) {
|
||||
case QEvent::MouseButtonPress:
|
||||
case QEvent::TouchBegin:
|
||||
case QEvent::Wheel: {
|
||||
psUserActionDone();
|
||||
updateNonIdle();
|
||||
} break;
|
||||
|
||||
case QEvent::ShortcutOverride: {
|
||||
@@ -252,7 +252,7 @@ bool Application::eventFilter(QObject *object, QEvent *e) {
|
||||
|
||||
case QEvent::ApplicationActivate: {
|
||||
if (object == QCoreApplication::instance()) {
|
||||
psUserActionDone();
|
||||
updateNonIdle();
|
||||
}
|
||||
} break;
|
||||
|
||||
|
Reference in New Issue
Block a user