1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 15:59:42 +01:00

Update defaults and do an update on enabling

This commit is contained in:
Leo Franchi 2011-10-12 17:54:35 -04:00
parent 648b2d69f9
commit 57e31e1319
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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();
}