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:
parent
648b2d69f9
commit
57e31e1319
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user