mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-12 00:54:20 +02:00
Delete cached icon when uninstalling attica resolver
This commit is contained in:
@@ -66,7 +66,7 @@ AtticaManager::AtticaManager( QObject* parent )
|
|||||||
|
|
||||||
// resolvers
|
// resolvers
|
||||||
// m_manager.addProviderFile( QUrl( "http://bakery.tomahawk-player.org/resolvers/providers.xml" ) );
|
// m_manager.addProviderFile( QUrl( "http://bakery.tomahawk-player.org/resolvers/providers.xml" ) );
|
||||||
|
|
||||||
const QString url = QString( "%1/resolvers/providers.xml?version=%2" ).arg( hostname() ).arg( TomahawkUtils::appFriendlyVersion() );
|
const QString url = QString( "%1/resolvers/providers.xml?version=%2" ).arg( hostname() ).arg( TomahawkUtils::appFriendlyVersion() );
|
||||||
QNetworkReply* reply = TomahawkUtils::nam()->get( QNetworkRequest( QUrl( url ) ) );
|
QNetworkReply* reply = TomahawkUtils::nam()->get( QNetworkRequest( QUrl( url ) ) );
|
||||||
NewClosure( reply, SIGNAL( finished() ), this, SLOT( providerFetched( QNetworkReply* ) ), reply );
|
NewClosure( reply, SIGNAL( finished() ), this, SLOT( providerFetched( QNetworkReply* ) ), reply );
|
||||||
@@ -760,4 +760,12 @@ AtticaManager::doResolverRemove( const QString& id ) const
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
TomahawkUtils::removeDirectory( resolverDir.absolutePath() );
|
TomahawkUtils::removeDirectory( resolverDir.absolutePath() );
|
||||||
|
|
||||||
|
QDir cacheDir = TomahawkUtils::appDataDir();
|
||||||
|
if ( !cacheDir.cd( "atticacache" ) )
|
||||||
|
return;
|
||||||
|
|
||||||
|
const bool removed = cacheDir.remove( id + ".png" );
|
||||||
|
tDebug() << "Tried to remove cached image, succeeded?" << removed << cacheDir.filePath( id );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user