mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 23:57:34 +02:00
Make sure to always hide the loading spinner, even if it's on a hidden page
This commit is contained in:
@@ -74,9 +74,6 @@ LoadingSpinner::fadeIn()
|
|||||||
void
|
void
|
||||||
LoadingSpinner::fadeOut()
|
LoadingSpinner::fadeOut()
|
||||||
{
|
{
|
||||||
if ( !isVisible() )
|
|
||||||
return;
|
|
||||||
|
|
||||||
m_showHide->setDirection( QTimeLine::Backward );
|
m_showHide->setDirection( QTimeLine::Backward );
|
||||||
|
|
||||||
if ( m_showHide->state() != QTimeLine::Running )
|
if ( m_showHide->state() != QTimeLine::Running )
|
||||||
|
@@ -851,6 +851,8 @@ TreeModel::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestData, QV
|
|||||||
if ( m_receivedInfoData.contains( requestData.input.value< Tomahawk::InfoSystem::InfoStringHash >() ) )
|
if ( m_receivedInfoData.contains( requestData.input.value< Tomahawk::InfoSystem::InfoStringHash >() ) )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
emit loadingFinished();
|
||||||
|
|
||||||
QVariantMap returnedData = output.value< QVariantMap >();
|
QVariantMap returnedData = output.value< QVariantMap >();
|
||||||
if ( returnedData.isEmpty() )
|
if ( returnedData.isEmpty() )
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user