mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 07:49:42 +01:00
Hide InfoBar and report isBeingPlayed status.
This commit is contained in:
parent
91fc20d0c8
commit
8610c156eb
@ -20,6 +20,7 @@
|
||||
#include "ui_NetworkActivityWidget.h"
|
||||
|
||||
#include "Pipeline.h"
|
||||
#include "audio/AudioEngine.h"
|
||||
#include "database/Database.h"
|
||||
#include "database/DatabaseCommand_NetworkCharts.h"
|
||||
#include "playlist/PlaylistChartItemDelegate.h"
|
||||
@ -81,6 +82,15 @@ NetworkActivityWidget::playlistInterface() const
|
||||
return m_playlistInterface;
|
||||
}
|
||||
|
||||
bool
|
||||
NetworkActivityWidget::isBeingPlayed() const
|
||||
{
|
||||
if ( AudioEngine::instance()->currentTrackPlaylist() == ui->tracksViewLeft->playlistInterface() )
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
NetworkActivityWidget::jumpToCurrentTrack()
|
||||
{
|
||||
|
@ -44,6 +44,9 @@ public:
|
||||
virtual QString title() const { return tr( "Network Activity" ); }
|
||||
virtual QString description() const { return QString(); }
|
||||
|
||||
virtual bool showInfoBar() const { return false; }
|
||||
virtual bool isBeingPlayed() const;
|
||||
|
||||
virtual bool jumpToCurrentTrack();
|
||||
|
||||
void fetchData();
|
||||
|
Loading…
x
Reference in New Issue
Block a user