mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 14:46:33 +02:00
Update defaults and do an update on enabling
This commit is contained in:
@@ -103,6 +103,10 @@ PlaylistUpdaterInterface::setAutoUpdate( bool autoUpdate )
|
||||
|
||||
const QString key = QString( "playlistupdaters/%1/autoupdate" ).arg( m_playlist->guid() );
|
||||
TomahawkSettings::instance()->setValue( key, m_autoUpdate );
|
||||
|
||||
// Update immediately as well
|
||||
if ( m_autoUpdate )
|
||||
QTimer::singleShot( 0, this, SLOT( updateNow() ) );
|
||||
}
|
||||
|
||||
void
|
||||
|
@@ -223,7 +223,7 @@ XSPFLoader::gotBody()
|
||||
m_entries );
|
||||
|
||||
Tomahawk::XspfUpdater* updater = new Tomahawk::XspfUpdater( m_playlist, m_url.toString() );
|
||||
updater->setInterval( 60000 );
|
||||
updater->setInterval( 1200000 ); // 20 minute default for now, no way to change it
|
||||
updater->setAutoUpdate( m_autoUpdate );
|
||||
deleteLater();
|
||||
}
|
||||
|
Reference in New Issue
Block a user