mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-22 00:42:04 +02:00
* Load recent albums when SourceList is ready.
This commit is contained in:
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
|
||||
Dashboard::playlistInterface() const
|
||||
{
|
||||
@ -228,6 +221,8 @@ Dashboard::onSourcesReady()
|
||||
{
|
||||
foreach ( const source_ptr& source, SourceList::instance()->sources() )
|
||||
onSourceAdded( source );
|
||||
|
||||
updateRecentAdditions();
|
||||
}
|
||||
|
||||
|
||||
|
@ -111,8 +111,6 @@ public slots:
|
||||
void updatePlaylists();
|
||||
void updateRecentAdditions();
|
||||
|
||||
void loadData();
|
||||
|
||||
private slots:
|
||||
void onSourcesReady();
|
||||
void onSourceAdded( const Tomahawk::source_ptr& source );
|
||||
|
Loading…
x
Reference in New Issue
Block a user