1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-12 00:54:20 +02:00

* Give instant user feedback when scanner gets kicked off.

This commit is contained in:
Christian Muehlhaeuser
2011-12-04 07:31:46 +01:00
parent 152b07d816
commit eaf9d806d1
2 changed files with 7 additions and 1 deletions

View File

@@ -223,7 +223,11 @@ Source::dbLoaded( unsigned int id, const QString& fname )
void
Source::scanningProgress( unsigned int files )
{
m_textStatus = tr( "Scanning (%L1 tracks)" ).arg( files );
if ( files )
m_textStatus = tr( "Scanning (%L1 tracks)" ).arg( files );
else
m_textStatus = tr( "Scanning" ).arg( files );
emit stateChanged();
}

View File

@@ -139,6 +139,8 @@ MusicScanner::startScan()
m_scanned = m_skipped = m_cmdQueue = 0;
m_skippedFiles.clear();
SourceList::instance()->getLocal()->scanningProgress( m_scanned );
// trigger the scan once we've loaded old filemtimes
//FIXME: For multiple collection support make sure the right prefix gets passed in...or not...
//bear in mind that simply passing in the top-level of a defined collection means it will not return items that need