mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
do not trigger repaint if invisible
This commit is contained in:
parent
f765daf98d
commit
936a34faf1
|
@ -78,6 +78,6 @@ void NotificationIcon::updateGradient()
|
|||
grad.setColorAt(qMin(1.0, alpha + dotWidth), Qt::lightGray);
|
||||
grad.setColorAt(1, Qt::lightGray);
|
||||
|
||||
if(scene())
|
||||
if(scene() && isVisible())
|
||||
scene()->invalidate(sceneBoundingRect());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user