mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-21 13:21:52 +02:00
Update local collection after successful download.
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
|
#include "filemetadata/ScanManager.h"
|
||||||
#include "TomahawkSettings.h"
|
#include "TomahawkSettings.h"
|
||||||
#include "infosystem/InfoSystem.h"
|
#include "infosystem/InfoSystem.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
@@ -255,6 +256,10 @@ DownloadManager::onJobFinished()
|
|||||||
{
|
{
|
||||||
DownloadJob* job = qobject_cast<DownloadJob*>( sender() );
|
DownloadJob* job = qobject_cast<DownloadJob*>( sender() );
|
||||||
|
|
||||||
|
QStringList files;
|
||||||
|
files << job->localFile();
|
||||||
|
ScanManager::instance()->runFileScan( files, true );
|
||||||
|
|
||||||
Tomahawk::InfoSystem::InfoPushData pushData( "DownloadManager", Tomahawk::InfoSystem::InfoNotifyUser,
|
Tomahawk::InfoSystem::InfoPushData pushData( "DownloadManager", Tomahawk::InfoSystem::InfoNotifyUser,
|
||||||
tr( "Tomahawk finished downloading %1 by %2." ).arg( job->track()->track() ).arg( job->track()->artist() ),
|
tr( "Tomahawk finished downloading %1 by %2." ).arg( job->track()->track() ).arg( job->track()->artist() ),
|
||||||
Tomahawk::InfoSystem::PushNoFlag );
|
Tomahawk::InfoSystem::PushNoFlag );
|
||||||
|
Reference in New Issue
Block a user