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

Origin commit data
------------------
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)
This commit is contained in:
vanhofen
2019-01-13 20:47:36 +01:00
parent d353be062f
commit 75dd74ab3a

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();