From 5f14e887a71f4fa1d44d5ea2626bb8a05a2235bc Mon Sep 17 00:00:00 2001 From: Victor Dodon Date: Thu, 10 Mar 2016 21:19:08 +0000 Subject: [PATCH] mpris2: more notifications in RepeatModeChanged Emit CanGoNext, CanGoPrevious notifications in RepeatModeChanged --- src/core/mpris2.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/mpris2.cpp b/src/core/mpris2.cpp index 8cec66bdc..4b182c51b 100644 --- a/src/core/mpris2.cpp +++ b/src/core/mpris2.cpp @@ -140,7 +140,11 @@ void Mpris2::VolumeChanged() { EmitNotification("Volume"); } void Mpris2::ShuffleModeChanged() { EmitNotification("Shuffle"); } -void Mpris2::RepeatModeChanged() { EmitNotification("LoopStatus"); } +void Mpris2::RepeatModeChanged() { + EmitNotification("LoopStatus"); + EmitNotification("CanGoNext", CanGoNext()); + EmitNotification("CanGoPrevious", CanGoPrevious()); +} void Mpris2::EmitNotification(const QString& name, const QVariant& val) { EmitNotification(name, val, "org.mpris.MediaPlayer2.Player");