mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
as requested, implement 'easy' menu mode for novice users;
default behavior should not be changed, easy mode forced by /var/etc/.easymenu file inside image;
at the moment switch between modes is done by main menu -> 'stop' button -> enter pin code,
restart needed after mode switch
Origin commit data
------------------
Commit: 606bd01878
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-10-25 (Fri, 25 Oct 2013)
This commit is contained in:
@@ -40,6 +40,9 @@
|
||||
#include <gui/streaminfo2.h>
|
||||
|
||||
#include <driver/screen_max.h>
|
||||
#include "gui/cam_menu.h"
|
||||
|
||||
extern CCAMMenuHandler * g_CamHandler;
|
||||
|
||||
CInfoMenu::CInfoMenu()
|
||||
{
|
||||
@@ -83,6 +86,12 @@ int CInfoMenu::showMenu()
|
||||
mf->setHint(NEUTRINO_ICON_HINT_STREAMINFO, LOCALE_MENU_HINT_STREAMINFO);
|
||||
info->addItem(mf);
|
||||
|
||||
if (g_settings.easymenu) {
|
||||
mf = new CMenuForwarder(LOCALE_CI_SETTINGS, true, NULL, g_CamHandler, NULL, CRCInput::RC_blue, NEUTRINO_ICON_BUTTON_BLUE);
|
||||
mf->setHint(NEUTRINO_ICON_HINT_CI, LOCALE_MENU_HINT_CI);
|
||||
info->addItem(mf);
|
||||
}
|
||||
|
||||
int res = info->exec(NULL, "");
|
||||
delete info;
|
||||
return res;
|
||||
|
Reference in New Issue
Block a user