aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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: