From 0d0553a639fea55e6b5232913e6113fbabc118a8 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Fri, 26 Jan 2018 22:08:46 +0100 Subject: [PATCH] - audioplayer: split RC_home/RC_stop handling; ... now RC_home do not stop playback anymore and RC_stop do not close gui. Signed-off-by: Thilo Graf --- src/gui/audioplayer.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gui/audioplayer.cpp b/src/gui/audioplayer.cpp index 338a776cb..1d54809db 100644 --- a/src/gui/audioplayer.cpp +++ b/src/gui/audioplayer.cpp @@ -444,12 +444,15 @@ int CAudioPlayerGui::show() } } - if (msg == CRCInput::RC_home || msg == CRCInput::RC_stop) + if (msg == CRCInput::RC_home) + { + if (m_state == CAudioPlayerGui::STOP) + loop=false; + } + if (msg == CRCInput::RC_stop) { if (m_state != CAudioPlayerGui::STOP) stop(); - else - loop=false; } #if 0 //add RC_favorites for internetradio else if ((msg == CRCInput::RC_favorites) && (m_inetmode))