From c2cc9d2b854a16292ed6291b30517d048c8c00d1 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sun, 13 Jan 2019 20:47:36 +0100 Subject: [PATCH] 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: https://github.com/neutrino-images/ni-neutrino/commit/5b5bf74289577bb0c534af2f715a1c37207a68a2 Author: vanhofen 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 --- src/gui/infoviewer.cpp | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index 15395a44b..4a1629aa6 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -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();