lcd4l add possibility to use it in user menu (thx GetAway)

Origin commit data
------------------
Branch: ni/coolstream
Commit: d61353f0fa
Author: TangoCash <eric@loxat.de>
Date: 2018-12-25 (Tue, 25 Dec 2018)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2018-12-25 22:35:29 +01:00
committed by vanhofen
parent a4aa07635d
commit 6cd9cb74c8
6 changed files with 22 additions and 0 deletions

View File

@@ -76,6 +76,7 @@
#include <gui/widget/icons.h>
#include <gui/adzap.h>
#include <gui/network_setup.h>
#include <gui/lcd4l_setup.h>
#include <gui/update_menue.h>
#include <gui/hdd_menu.h>
#include <gui/test_menu.h> //NI
@@ -526,6 +527,13 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg)
menu_item->setHint(NEUTRINO_ICON_HINT_NETWORK, LOCALE_MENU_HINT_NETWORK);
break;
}
case SNeutrinoSettings::ITEM_LCD4LINUX:
{
keyhelper.get(&key,&icon);
menu_item = new CMenuForwarder(LOCALE_LCD4L_SUPPORT, ((access("/usr/bin/lcd4linux", F_OK) == 0) || (access("/var/bin/lcd4linux", F_OK) == 0)), NULL, CLCD4lSetup::getInstance(), NULL, key, icon);
menu_item->setHint(NEUTRINO_ICON_HINT_LCD4LINUX, LOCALE_MENU_HINT_LCD4L_SUPPORT);
break;
}
case SNeutrinoSettings::ITEM_SWUPDATE:
{
keyhelper.get(&key,&icon);