From e21a56048ab574b07e79683d3004d913fe70dadd Mon Sep 17 00:00:00 2001 From: Volodia Date: Thu, 25 Feb 2021 18:24:07 +0200 Subject: [PATCH] Fixes double fade-in animation when clicking the question mark next to the 'Available' label in the top bar --- src/qt/pivx/balancebubble.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/qt/pivx/balancebubble.cpp b/src/qt/pivx/balancebubble.cpp index 631d21d94acc..7ecbacc8a559 100644 --- a/src/qt/pivx/balancebubble.cpp +++ b/src/qt/pivx/balancebubble.cpp @@ -44,12 +44,12 @@ void BalanceBubble::showEvent(QShowEvent *event) { QGraphicsOpacityEffect *eff = new QGraphicsOpacityEffect(this); this->setGraphicsEffect(eff); - QPropertyAnimation *a = new QPropertyAnimation(eff,"opacity"); - a->setDuration(400); - a->setStartValue(0.1); - a->setEndValue(1); - a->setEasingCurve(QEasingCurve::InBack); - a->start(QPropertyAnimation::DeleteWhenStopped); + QPropertyAnimation *anim = new QPropertyAnimation(eff,"opacity"); + anim->setDuration(400); + anim->setStartValue(0); + anim->setEndValue(1); + anim->setEasingCurve(QEasingCurve::Linear); + anim->start(QPropertyAnimation::DeleteWhenStopped); if (!hideTimer) hideTimer = new QTimer(this); connect(hideTimer, &QTimer::timeout, this, &BalanceBubble::hideTimeout); @@ -77,4 +77,4 @@ void BalanceBubble::hideTimeout() BalanceBubble::~BalanceBubble() { delete ui; -} \ No newline at end of file +}