mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
Don't re-install spotify on each restart on windows ;)
This commit is contained in:
@@ -158,12 +158,16 @@ SpotifyAccount::hookupResolver()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool SpotifyAccount::checkForResolver()
|
bool
|
||||||
|
SpotifyAccount::checkForResolver()
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_MAC
|
#if defined(Q_OS_MAC)
|
||||||
const QDir path = QCoreApplication::applicationDirPath();
|
const QDir path = QCoreApplication::applicationDirPath();
|
||||||
QFile file( path.absoluteFilePath( "spotify_tomahawkresolver" ) );
|
QFile file( path.absoluteFilePath( "spotify_tomahawkresolver" ) );
|
||||||
return file.exists();
|
return file.exists();
|
||||||
|
#else if defined(Q_OS_WIN)
|
||||||
|
QDir appDataDir = TomahawkUtils::appDataDir();
|
||||||
|
return appDataDir.exists( QString( "atticaresolvers/%1/spotify_tomahawkresolver.exe" ).arg( s_resolverId ) );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user