mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-01-17 14:28:24 +01:00
Show notification on resume
Display song notification when a user resumes playing music.
This commit is contained in:
parent
77e9b69679
commit
a9505f75c5
@ -80,7 +80,7 @@ FdoNotifyPlugin::FdoNotifyPlugin()
|
|||||||
, m_wmSupportsBodyMarkup( false )
|
, m_wmSupportsBodyMarkup( false )
|
||||||
{
|
{
|
||||||
tDebug( LOGVERBOSE ) << Q_FUNC_INFO;
|
tDebug( LOGVERBOSE ) << Q_FUNC_INFO;
|
||||||
m_supportedPushTypes << InfoNotifyUser << InfoNowPlaying << InfoTrackUnresolved << InfoNowStopped << InfoInboxReceived;
|
m_supportedPushTypes << InfoNotifyUser << InfoNowPlaying << InfoNowResumed << InfoTrackUnresolved << InfoNowStopped << InfoInboxReceived;
|
||||||
|
|
||||||
// Query the window manager for its capabilties in styling notifications.
|
// Query the window manager for its capabilties in styling notifications.
|
||||||
notifications_interface = new org::freedesktop::Notifications( "org.freedesktop.Notifications", "/org/freedesktop/Notifications",
|
notifications_interface = new org::freedesktop::Notifications( "org.freedesktop.Notifications", "/org/freedesktop/Notifications",
|
||||||
@ -139,6 +139,7 @@ FdoNotifyPlugin::pushInfo( Tomahawk::InfoSystem::InfoPushData pushData )
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
case Tomahawk::InfoSystem::InfoNowPlaying:
|
case Tomahawk::InfoSystem::InfoNowPlaying:
|
||||||
|
case Tomahawk::InfoSystem::InfoNowResumed:
|
||||||
nowPlaying( pushData.infoPair.second );
|
nowPlaying( pushData.infoPair.second );
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user