mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-19 15:29:42 +01:00
Updated TomahawkSettings to handle download folder.
This commit is contained in:
parent
55feb3f3e1
commit
94ee994112
@ -799,6 +799,24 @@ TomahawkSettings::setWatchForChanges( bool watch )
|
||||
}
|
||||
|
||||
|
||||
QString
|
||||
TomahawkSettings::downloadsPath() const
|
||||
{
|
||||
QString musicLocation;
|
||||
if ( scannerPaths().count() )
|
||||
musicLocation = scannerPaths().first();
|
||||
|
||||
return value( "downloadmanager/path", musicLocation ).toString();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
TomahawkSettings::setDownloadsPath( const QString& path )
|
||||
{
|
||||
setValue( "downloadmanager/path", path );
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
TomahawkSettings::httpEnabled() const
|
||||
{
|
||||
|
@ -57,6 +57,9 @@ public:
|
||||
uint scannerTime() const;
|
||||
void setScannerTime( uint time );
|
||||
|
||||
QString downloadsPath() const;
|
||||
void setDownloadsPath( const QString& path );
|
||||
|
||||
uint infoSystemCacheVersion() const;
|
||||
void setInfoSystemCacheVersion( uint version );
|
||||
uint genericCacheVersion() const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user