mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
update-menu: formatting code using astyle; some manual code nicenings
Origin commit data
------------------
Commit: 79eb6d0e34
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-12-04 (Sat, 04 Dec 2021)
Origin message was:
------------------
- update-menu: formatting code using astyle; some manual code nicenings
This commit is contained in:
@@ -30,7 +30,6 @@
|
|||||||
Boston, MA 02110-1301, USA.
|
Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -74,8 +73,8 @@ int CSoftwareUpdate::exec(CMenuTarget* parent, const std::string &/*actionKey*/)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// shows the menue and options for software update
|
||||||
int CSoftwareUpdate::showSoftwareUpdate()
|
int CSoftwareUpdate::showSoftwareUpdate()
|
||||||
/* shows the menue and options for software update */
|
|
||||||
{
|
{
|
||||||
CMenuForwarder *mf, *update_item;
|
CMenuForwarder *mf, *update_item;
|
||||||
CMenuWidget softUpdate(LOCALE_MAINMENU_SERVICE, NEUTRINO_ICON_UPDATE, width, MN_WIDGET_ID_SOFTWAREUPDATE);
|
CMenuWidget softUpdate(LOCALE_MAINMENU_SERVICE, NEUTRINO_ICON_UPDATE, width, MN_WIDGET_ID_SOFTWAREUPDATE);
|
||||||
@@ -84,7 +83,8 @@ int CSoftwareUpdate::showSoftwareUpdate()
|
|||||||
|
|
||||||
unsigned int inetkey = CRCInput::RC_red;
|
unsigned int inetkey = CRCInput::RC_red;
|
||||||
#if ENABLE_PKG_MANAGEMENT
|
#if ENABLE_PKG_MANAGEMENT
|
||||||
if (COPKGManager::hasOpkgSupport()) {
|
if (COPKGManager::hasOpkgSupport())
|
||||||
|
{
|
||||||
// firmware update via opkg
|
// firmware update via opkg
|
||||||
mf = new CMenuDForwarder(LOCALE_OPKG_TITLE, true, NULL, new COPKGManager(), NULL, CRCInput::RC_red);
|
mf = new CMenuDForwarder(LOCALE_OPKG_TITLE, true, NULL, new COPKGManager(), NULL, CRCInput::RC_red);
|
||||||
mf->setHint(NEUTRINO_ICON_HINT_SW_UPDATE, LOCALE_MENU_HINT_OPKG);
|
mf->setHint(NEUTRINO_ICON_HINT_SW_UPDATE, LOCALE_MENU_HINT_OPKG);
|
||||||
@@ -143,7 +143,7 @@ int CSoftwareUpdate::showSoftwareUpdate()
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* shows experts-functions to read/write to the mtd */
|
// shows experts-functions to read/write to the mtd
|
||||||
void CSoftwareUpdate::showSoftwareUpdateExpert(CMenuWidget *w_mtd_expert)
|
void CSoftwareUpdate::showSoftwareUpdateExpert(CMenuWidget *w_mtd_expert)
|
||||||
{
|
{
|
||||||
CMenuForwarder *mf;
|
CMenuForwarder *mf;
|
||||||
|
Reference in New Issue
Block a user