infoviewer: allow to disable pip with RC_help if g_settings.show_ecm_pos is off (thx to mirz)

Origin commit data
------------------
Branch: ni/coolstream
Commit: 24cac7b6a3
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-01-13 (Sun, 13 Jan 2019)

Origin message was:
------------------
- infoviewer: allow to disable pip with RC_help if g_settings.show_ecm_pos is off (thx to mirz)

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2019-01-13 16:09:20 +01:00
parent 7fe588d9a0
commit 84387b2878
8 changed files with 82 additions and 27 deletions

View File

@@ -1109,15 +1109,17 @@ void CInfoViewer::loop(bool show_dot)
showLivestreamInfo();
//NI
if (msg == CRCInput::RC_help) {
if (g_settings.show_ecm_pos) {
if (g_settings.show_ecm) {
g_settings.show_ecm = 0;
ecmInfoBox_hide();
} else {
g_settings.show_ecm = 1;
infoViewerBB->paint_ca_icons(0);
}
if (msg == CRCInput::RC_help && g_settings.show_ecm_pos)
{
if (g_settings.show_ecm)
{
g_settings.show_ecm = 0;
ecmInfoBox_hide();
}
else
{
g_settings.show_ecm = 1;
infoViewerBB->paint_ca_icons(0);
}
g_RCInput->clearRCMsg();
setInfobarTimeout();