mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 16:44:05 +02:00
Temporarily deactivate hot playlists
This commit is contained in:
@@ -162,8 +162,10 @@ NetworkActivityWidget::NetworkActivityWidget( QWidget* parent )
|
||||
d->ui->playlistView->setFrameShape( QFrame::NoFrame );
|
||||
d->ui->playlistView->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||
d->ui->playlistView->setItemDelegate( new PlaylistDelegate() );
|
||||
d->ui->playlistView->overlay()->resize( 380, 86 );
|
||||
d->ui->playlistView->setVerticalScrollMode( QAbstractItemView::ScrollPerPixel );
|
||||
d->ui->playlistView->overlay()->setText( tr( "Coming soon." ) );
|
||||
d->ui->playlistView->overlay()->resize( 380, 86 );
|
||||
d->ui->playlistView->overlay()->setEnabled( true );
|
||||
|
||||
QPalette p = d->ui->playlistView->palette();
|
||||
p.setColor( QPalette::Text, TomahawkStyle::HEADER_TEXT );
|
||||
@@ -173,6 +175,7 @@ NetworkActivityWidget::NetworkActivityWidget( QWidget* parent )
|
||||
p.setColor( QPalette::HighlightedText, TomahawkStyle::HEADER_BACKGROUND );
|
||||
|
||||
d->ui->playlistView->setPalette( p );
|
||||
d->ui->playlistView->overlay()->setPalette( p );
|
||||
d->ui->playlistView->setMinimumHeight( 400 );
|
||||
d->ui->playlistView->setStyleSheet( "QListView { background-color: transparent; }" );
|
||||
TomahawkStyle::styleScrollBar( d->ui->playlistView->verticalScrollBar() );
|
||||
@@ -212,6 +215,10 @@ NetworkActivityWidget::NetworkActivityWidget( QWidget* parent )
|
||||
// connect( d->workerThread, SIGNAL( finished() ), d->workerThread, SLOT( deleteLater() ), Qt::QueuedConnection );
|
||||
// connect( d->workerThread, SIGNAL( destroyed() ), d->worker, SLOT( deleteLater() ), Qt::QueuedConnection );
|
||||
QMetaObject::invokeMethod( d->worker, "run", Qt::QueuedConnection );
|
||||
|
||||
// FIXME: Activate hot playlists again
|
||||
d->ui->playlistsFrame->hide();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@@ -63,11 +63,11 @@ NetworkActivityWorker::run()
|
||||
Database::instance()->enqueue( dbcmd_ptr( dbcmd ) );
|
||||
}
|
||||
{
|
||||
DatabaseCommand_LoadAllSources* dbcmd = new DatabaseCommand_LoadAllSources();
|
||||
/* DatabaseCommand_LoadAllSources* dbcmd = new DatabaseCommand_LoadAllSources();
|
||||
connect( dbcmd, SIGNAL( done( QList<Tomahawk::source_ptr> ) ),
|
||||
SLOT( allSourcesReceived( QList<Tomahawk::source_ptr> ) ),
|
||||
Qt::QueuedConnection);
|
||||
Database::instance()->enqueue( dbcmd_ptr( dbcmd ) );
|
||||
Database::instance()->enqueue( dbcmd_ptr( dbcmd ) ); */
|
||||
}
|
||||
tLog() << Q_FUNC_INFO << QDateTime::currentDateTime().toTime_t();
|
||||
}
|
||||
@@ -163,7 +163,7 @@ void
|
||||
NetworkActivityWorker::checkDone()
|
||||
{
|
||||
Q_D( NetworkActivityWorker );
|
||||
if ( d->trendingTracksDone && d->hotPlaylistsDone )
|
||||
if ( d->trendingTracksDone /* && d->hotPlaylistsDone */ )
|
||||
{
|
||||
emit finished();
|
||||
}
|
||||
|
Reference in New Issue
Block a user