mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-12 09:04:33 +02:00
* Give instant user feedback when scanner gets kicked off.
This commit is contained in:
@@ -223,7 +223,11 @@ Source::dbLoaded( unsigned int id, const QString& fname )
|
|||||||
void
|
void
|
||||||
Source::scanningProgress( unsigned int files )
|
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();
|
emit stateChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -139,6 +139,8 @@ MusicScanner::startScan()
|
|||||||
m_scanned = m_skipped = m_cmdQueue = 0;
|
m_scanned = m_skipped = m_cmdQueue = 0;
|
||||||
m_skippedFiles.clear();
|
m_skippedFiles.clear();
|
||||||
|
|
||||||
|
SourceList::instance()->getLocal()->scanningProgress( m_scanned );
|
||||||
|
|
||||||
// trigger the scan once we've loaded old filemtimes
|
// trigger the scan once we've loaded old filemtimes
|
||||||
//FIXME: For multiple collection support make sure the right prefix gets passed in...or not...
|
//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
|
//bear in mind that simply passing in the top-level of a defined collection means it will not return items that need
|
||||||
|
Reference in New Issue
Block a user