From f8455de73e0b4eeeaa51013dd0d2a984f9335047 Mon Sep 17 00:00:00 2001 From: Keshav Bhatt Date: Sat, 25 Jun 2022 23:11:36 +0530 Subject: chore: notification connect before show --- src/notificationpopup.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/notificationpopup.h b/src/notificationpopup.h index 533d107..3a765e0 100644 --- a/src/notificationpopup.h +++ b/src/notificationpopup.h @@ -106,7 +106,6 @@ protected slots: a->setEndValue(QApplication::desktop()->mapToGlobal(QPoint(x, y))); a->setEasingCurve(QEasingCurve::InCubic); a->start(QPropertyAnimation::DeleteWhenStopped); - this->show(); } @@ -119,7 +118,6 @@ protected slots: a->setEndValue(QApplication::desktop()->mapToGlobal( QPoint(x, -(this->height() + 20)))); a->setEasingCurve(QEasingCurve::Linear); - a->start(QPropertyAnimation::DeleteWhenStopped); connect(a, &QPropertyAnimation::finished, this, [=]() { if (notification) { @@ -128,6 +126,7 @@ protected slots: } this->close(); }); + a->start(QPropertyAnimation::DeleteWhenStopped); } protected: -- cgit v1.2.3