mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
videosettings.cpp: hide zapmode settings for boxes that dont have it (e.g. osmio)
Origin commit data
------------------
Commit: 930366584e
Author: Markus Volk <f_l_k@t-online.de>
Date: 2020-03-05 (Thu, 05 Mar 2020)
This commit is contained in:
@@ -55,6 +55,7 @@
|
|||||||
#include <daemonc/remotecontrol.h>
|
#include <daemonc/remotecontrol.h>
|
||||||
|
|
||||||
#include <system/debug.h>
|
#include <system/debug.h>
|
||||||
|
#include <system/helpers.cpp>
|
||||||
|
|
||||||
#include <cs_api.h>
|
#include <cs_api.h>
|
||||||
#include <hardware/video.h>
|
#include <hardware/video.h>
|
||||||
@@ -488,12 +489,11 @@ int CVideoSettings::showVideoSetup()
|
|||||||
videosetup->addItem(pipsetup);
|
videosetup->addItem(pipsetup);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE
|
if (file_exists("/proc/stb/video/zapmode")) {
|
||||||
CMenuOptionChooser * zm = new CMenuOptionChooser(LOCALE_VIDEOMENU_ZAPPINGMODE, &g_settings.zappingmode, VIDEOMENU_ZAPPINGMODE_OPTIONS, VIDEOMENU_ZAPPINGMODE_OPTION_COUNT, true, this);
|
CMenuOptionChooser * zm = new CMenuOptionChooser(LOCALE_VIDEOMENU_ZAPPINGMODE, &g_settings.zappingmode, VIDEOMENU_ZAPPINGMODE_OPTIONS, VIDEOMENU_ZAPPINGMODE_OPTION_COUNT, true, this);
|
||||||
zm->setHint("", LOCALE_MENU_HINT_VIDEO_ZAPPINGMODE);
|
zm->setHint("", LOCALE_MENU_HINT_VIDEO_ZAPPINGMODE);
|
||||||
videosetup->addItem(zm);
|
videosetup->addItem(zm);
|
||||||
#endif
|
}
|
||||||
|
|
||||||
int res = videosetup->exec(NULL, "");
|
int res = videosetup->exec(NULL, "");
|
||||||
selected = videosetup->getSelected();
|
selected = videosetup->getSelected();
|
||||||
delete videosetup;
|
delete videosetup;
|
||||||
|
Reference in New Issue
Block a user