mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +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 <system/debug.h>
|
||||
#include <system/helpers.cpp>
|
||||
|
||||
#include <cs_api.h>
|
||||
#include <hardware/video.h>
|
||||
@@ -488,12 +489,11 @@ int CVideoSettings::showVideoSetup()
|
||||
videosetup->addItem(pipsetup);
|
||||
#endif
|
||||
|
||||
#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE
|
||||
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);
|
||||
videosetup->addItem(zm);
|
||||
#endif
|
||||
|
||||
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);
|
||||
zm->setHint("", LOCALE_MENU_HINT_VIDEO_ZAPPINGMODE);
|
||||
videosetup->addItem(zm);
|
||||
}
|
||||
int res = videosetup->exec(NULL, "");
|
||||
selected = videosetup->getSelected();
|
||||
delete videosetup;
|
||||
|
Reference in New Issue
Block a user