mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
Only animate when visible
This commit is contained in:
@@ -123,7 +123,7 @@ Breadcrumb::updateButtons( const QModelIndex& updateFrom )
|
|||||||
btn->show();
|
btn->show();
|
||||||
|
|
||||||
// Animate all buttons except the first
|
// Animate all buttons except the first
|
||||||
if ( m_buttons.count() > 0 )
|
if ( m_buttons.count() > 0 && isVisible() )
|
||||||
{
|
{
|
||||||
QPropertyAnimation* animation = new QPropertyAnimation( btn, "pos" );
|
QPropertyAnimation* animation = new QPropertyAnimation( btn, "pos" );
|
||||||
animation->setDuration( 300 );
|
animation->setDuration( 300 );
|
||||||
|
Reference in New Issue
Block a user