[Xfce4-commits] [apps/xfmpc] 01/01: Resume playback after replacing queue

noreply at xfce.org noreply at xfce.org
Sun Feb 10 21:53:45 CET 2019


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfmpc.

commit e29533c9c37b2664f8daf451426804b6d618c444
Author: Johannes Marbach <n0-0ne+xfce at mailbox.org>
Date:   Sat Feb 9 23:16:15 2019 +0100

    Resume playback after replacing queue
    
    This resumes playback after replacing the current queue
    if MPD was playing before.
    
    Fixes: #9100
---
 src/dbbrowser.vala | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/dbbrowser.vala b/src/dbbrowser.vala
index cc7bcf8..6893794 100644
--- a/src/dbbrowser.vala
+++ b/src/dbbrowser.vala
@@ -404,8 +404,12 @@ namespace Xfmpc {
 		}
 
 		private void cb_replace_with_selected_rows () {
+			var playing = this.mpdclient.is_playing ();
 			this.mpdclient.queue_clear ();
 			add_selected_rows ();
+			if (playing) {
+				this.mpdclient.play ();
+			}
 		}
 
 		private void cb_browse () {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list