Skip to content

Commit 775e532

Browse files
PicklesRcoolfurszy
authored andcommitted
Fixes double fade-in animation when clicking the question mark next to the 'Available' label in the top bar
Github-Pull: #2247 Rebased-From: e21a560
1 parent 0cf4064 commit 775e532

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/qt/pivx/balancebubble.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ void BalanceBubble::showEvent(QShowEvent *event)
4444
{
4545
QGraphicsOpacityEffect *eff = new QGraphicsOpacityEffect(this);
4646
this->setGraphicsEffect(eff);
47-
QPropertyAnimation *a = new QPropertyAnimation(eff,"opacity");
48-
a->setDuration(400);
49-
a->setStartValue(0.1);
50-
a->setEndValue(1);
51-
a->setEasingCurve(QEasingCurve::InBack);
52-
a->start(QPropertyAnimation::DeleteWhenStopped);
47+
QPropertyAnimation *anim = new QPropertyAnimation(eff,"opacity");
48+
anim->setDuration(400);
49+
anim->setStartValue(0);
50+
anim->setEndValue(1);
51+
anim->setEasingCurve(QEasingCurve::Linear);
52+
anim->start(QPropertyAnimation::DeleteWhenStopped);
5353

5454
if (!hideTimer) hideTimer = new QTimer(this);
5555
connect(hideTimer, &QTimer::timeout, this, &BalanceBubble::hideTimeout);
@@ -77,4 +77,4 @@ void BalanceBubble::hideTimeout()
7777
BalanceBubble::~BalanceBubble()
7878
{
7979
delete ui;
80-
}
80+
}

0 commit comments

Comments
 (0)