mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-12 09:04:33 +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;
|
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