mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 07:07:05 +02:00
* Load recent albums when SourceList is ready.
This commit is contained in:
committed by
Michael Zanetti
parent
a4505930b5
commit
1ecfc8aa9e
@@ -186,13 +186,6 @@ Dashboard::~Dashboard()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
Dashboard::loadData()
|
|
||||||
{
|
|
||||||
m_recentAlbumsModel->addFilteredCollection( collection_ptr(), 20, DatabaseCommand_AllAlbums::ModificationTime, true );
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Tomahawk::playlistinterface_ptr
|
Tomahawk::playlistinterface_ptr
|
||||||
Dashboard::playlistInterface() const
|
Dashboard::playlistInterface() const
|
||||||
{
|
{
|
||||||
@@ -228,6 +221,8 @@ Dashboard::onSourcesReady()
|
|||||||
{
|
{
|
||||||
foreach ( const source_ptr& source, SourceList::instance()->sources() )
|
foreach ( const source_ptr& source, SourceList::instance()->sources() )
|
||||||
onSourceAdded( source );
|
onSourceAdded( source );
|
||||||
|
|
||||||
|
updateRecentAdditions();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -111,8 +111,6 @@ public slots:
|
|||||||
void updatePlaylists();
|
void updatePlaylists();
|
||||||
void updateRecentAdditions();
|
void updateRecentAdditions();
|
||||||
|
|
||||||
void loadData();
|
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void onSourcesReady();
|
void onSourcesReady();
|
||||||
void onSourceAdded( const Tomahawk::source_ptr& source );
|
void onSourceAdded( const Tomahawk::source_ptr& source );
|
||||||
|
Reference in New Issue
Block a user