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