mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
* Show a loading spinner for top hits.
This commit is contained in:
@@ -228,6 +228,8 @@ ArtistInfoWidget::load( const artist_ptr& artist )
|
|||||||
|
|
||||||
ui->artistLabel->setText( artist->name() );
|
ui->artistLabel->setText( artist->name() );
|
||||||
|
|
||||||
|
m_topHitsModel->startLoading();
|
||||||
|
|
||||||
if ( !m_artist->albums( Mixed ).isEmpty() )
|
if ( !m_artist->albums( Mixed ).isEmpty() )
|
||||||
onAlbumsFound( m_artist->albums( Mixed ), Mixed );
|
onAlbumsFound( m_artist->albums( Mixed ), Mixed );
|
||||||
|
|
||||||
@@ -258,6 +260,7 @@ ArtistInfoWidget::onTracksFound( const QList<Tomahawk::query_ptr>& queries, Mode
|
|||||||
{
|
{
|
||||||
Q_UNUSED( mode );
|
Q_UNUSED( mode );
|
||||||
|
|
||||||
|
m_topHitsModel->finishLoading();
|
||||||
m_topHitsModel->append( queries );
|
m_topHitsModel->append( queries );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user