From a9505f75c500a7eb11f3929dd4cdb0eedf397e55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ricks?= Date: Fri, 27 May 2016 09:02:25 +0200 Subject: [PATCH] Show notification on resume Display song notification when a user resumes playing music. --- src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp b/src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp index 4883ace49..0c98fe06a 100644 --- a/src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp +++ b/src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp @@ -80,7 +80,7 @@ FdoNotifyPlugin::FdoNotifyPlugin() , m_wmSupportsBodyMarkup( false ) { 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. notifications_interface = new org::freedesktop::Notifications( "org.freedesktop.Notifications", "/org/freedesktop/Notifications", @@ -139,6 +139,7 @@ FdoNotifyPlugin::pushInfo( Tomahawk::InfoSystem::InfoPushData pushData ) return; case Tomahawk::InfoSystem::InfoNowPlaying: + case Tomahawk::InfoSystem::InfoNowResumed: nowPlaying( pushData.infoPair.second ); return;