mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
gui/update_menue.cpp: cut update menu for easy mode
This commit is contained in:
@@ -97,8 +97,10 @@ int CSoftwareUpdate::showSoftwareUpdate()
|
|||||||
update_item->setHint("", LOCALE_MENU_HINT_SOFTUPDATE_CHECK_LOCAL);
|
update_item->setHint("", LOCALE_MENU_HINT_SOFTUPDATE_CHECK_LOCAL);
|
||||||
softUpdate.addItem(update_item);
|
softUpdate.addItem(update_item);
|
||||||
|
|
||||||
//settings
|
|
||||||
CUpdateSettings update_settings(update_item);
|
CUpdateSettings update_settings(update_item);
|
||||||
|
CMenuWidget mtdexpert(LOCALE_FLASHUPDATE_EXPERTFUNCTIONS, NEUTRINO_ICON_UPDATE, width, MN_WIDGET_ID_MTDEXPERT);
|
||||||
|
//settings
|
||||||
|
if (!g_settings.easymenu) {
|
||||||
mf = new CMenuForwarder(LOCALE_FLASHUPDATE_SETTINGS, true, NULL, &update_settings, NULL, CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW);
|
mf = new CMenuForwarder(LOCALE_FLASHUPDATE_SETTINGS, true, NULL, &update_settings, NULL, CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW);
|
||||||
mf->setHint("", LOCALE_MENU_HINT_SOFTUPDATE_SETTINGS);
|
mf->setHint("", LOCALE_MENU_HINT_SOFTUPDATE_SETTINGS);
|
||||||
softUpdate.addItem(mf);
|
softUpdate.addItem(mf);
|
||||||
@@ -106,7 +108,6 @@ int CSoftwareUpdate::showSoftwareUpdate()
|
|||||||
softUpdate.addItem(GenericMenuSeparatorLine);
|
softUpdate.addItem(GenericMenuSeparatorLine);
|
||||||
|
|
||||||
//expert-functions
|
//expert-functions
|
||||||
CMenuWidget mtdexpert(LOCALE_FLASHUPDATE_EXPERTFUNCTIONS, NEUTRINO_ICON_UPDATE, width, MN_WIDGET_ID_MTDEXPERT);
|
|
||||||
showSoftwareUpdateExpert(&mtdexpert);
|
showSoftwareUpdateExpert(&mtdexpert);
|
||||||
mf = new CMenuForwarder(LOCALE_FLASHUPDATE_EXPERTFUNCTIONS, true, NULL, &mtdexpert, NULL, CRCInput::RC_blue, NEUTRINO_ICON_BUTTON_BLUE);
|
mf = new CMenuForwarder(LOCALE_FLASHUPDATE_EXPERTFUNCTIONS, true, NULL, &mtdexpert, NULL, CRCInput::RC_blue, NEUTRINO_ICON_BUTTON_BLUE);
|
||||||
mf->setHint("", LOCALE_MENU_HINT_SOFTUPDATE_EXPERT);
|
mf->setHint("", LOCALE_MENU_HINT_SOFTUPDATE_EXPERT);
|
||||||
@@ -119,6 +120,7 @@ int CSoftwareUpdate::showSoftwareUpdate()
|
|||||||
mf->setHint("", LOCALE_MENU_HINT_SOFTUPDATE_CREATEIMAGE_MENU);
|
mf->setHint("", LOCALE_MENU_HINT_SOFTUPDATE_CREATEIMAGE_MENU);
|
||||||
softUpdate.addItem(mf);
|
softUpdate.addItem(mf);
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
int res = softUpdate.exec (NULL, "");
|
int res = softUpdate.exec (NULL, "");
|
||||||
return res;
|
return res;
|
||||||
|
Reference in New Issue
Block a user