aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLibravatar Keshav Bhatt <keshavnrj@gmail.com>2022-06-25 23:11:36 +0530
committerLibravatar Keshav Bhatt <keshavnrj@gmail.com>2022-06-25 23:11:36 +0530
commitf8455de73e0b4eeeaa51013dd0d2a984f9335047 (patch)
tree1fdb15000c554c0ef0ccc8255badc35b43e57970 /src
parent0a182a9e9283843f83652127e801fdf85a5f3855 (diff)
downloadwhatsie-f8455de73e0b4eeeaa51013dd0d2a984f9335047.tar.gz
whatsie-f8455de73e0b4eeeaa51013dd0d2a984f9335047.zip
chore: notification connect before show
Diffstat (limited to 'src')
-rw-r--r--src/notificationpopup.h3
1 files changed, 1 insertions, 2 deletions
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: