mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
Return menu result
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1889 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Commit: 1800f9073d
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2011-11-25 (Fri, 25 Nov 2011)
This commit is contained in:
@@ -86,11 +86,11 @@ int CSoftwareUpdate::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
return res;
|
||||
}
|
||||
|
||||
showSoftwareUpdate();
|
||||
res = showSoftwareUpdate();
|
||||
return res;
|
||||
}
|
||||
|
||||
void CSoftwareUpdate::showSoftwareUpdate()
|
||||
int CSoftwareUpdate::showSoftwareUpdate()
|
||||
/* shows the menue and options for software update */
|
||||
{
|
||||
CMenuWidget* softUpdate = new CMenuWidget(LOCALE_MAINMENU_SERVICE, NEUTRINO_ICON_UPDATE, width);
|
||||
@@ -113,10 +113,11 @@ void CSoftwareUpdate::showSoftwareUpdate()
|
||||
softUpdate->addItem(GenericMenuSeparatorLine);
|
||||
softUpdate->addItem(new CMenuForwarder(LOCALE_FLASHUPDATE_CHECKUPDATE, true, NULL, new CFlashUpdate(), "", CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW ));
|
||||
|
||||
softUpdate->exec (NULL, "");
|
||||
int res = softUpdate->exec (NULL, "");
|
||||
softUpdate->hide ();
|
||||
selected = softUpdate->getSelected();
|
||||
delete softUpdate;
|
||||
return res;
|
||||
}
|
||||
|
||||
/* shows experts-functions to read/write to the mtd */
|
||||
@@ -131,6 +132,3 @@ void CSoftwareUpdate::showSoftwareUpdateExpert(CMenuWidget *mtd_expert)
|
||||
|
||||
mtd_expert->addItem(new CMenuForwarder(LOCALE_FLASHUPDATE_URL_FILE, true, g_settings.softupdate_url_file, input_url_file));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user