mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 01:24:11 +02:00
Delete cached icon when uninstalling attica resolver
This commit is contained in:
@@ -760,4 +760,12 @@ AtticaManager::doResolverRemove( const QString& id ) const
|
||||
return;
|
||||
|
||||
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