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: 5b5bf74289
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 20:47:36 +01:00
parent 9d7fbb44ac
commit c2cc9d2b85

View File

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