mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
update-menu: just disable online update if softupdate_url_file doesn't exist
Origin commit data
------------------
Branch: ni/coolstream
Commit: 8c2827f040
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-09-03 (Thu, 03 Sep 2020)
Origin message was:
------------------
- update-menu: just disable online update if softupdate_url_file doesn't exist
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -93,12 +93,11 @@ int CSoftwareUpdate::showSoftwareUpdate()
|
||||
|
||||
CFlashUpdate flash;
|
||||
flash.enableNotify(false);
|
||||
|
||||
//online update
|
||||
if (file_exists(g_settings.softupdate_url_file.c_str())) {
|
||||
update_item = new CMenuForwarder(LOCALE_FLASHUPDATE_CHECKUPDATE_INTERNET, allow_update, NULL, &flash, "inet", inetkey);
|
||||
update_item->setHint("", LOCALE_MENU_HINT_SOFTUPDATE_CHECK);
|
||||
softUpdate.addItem(update_item);
|
||||
}
|
||||
update_item = new CMenuForwarder(LOCALE_FLASHUPDATE_CHECKUPDATE_INTERNET, allow_update && file_exists(g_settings.softupdate_url_file.c_str()), NULL, &flash, "inet", inetkey);
|
||||
update_item->setHint("", LOCALE_MENU_HINT_SOFTUPDATE_CHECK);
|
||||
softUpdate.addItem(update_item);
|
||||
|
||||
//local update
|
||||
update_item = new CMenuForwarder(LOCALE_FLASHUPDATE_CHECKUPDATE_LOCAL, allow_update, NULL, &flash, "local", CRCInput::RC_green);
|
||||
|
Reference in New Issue
Block a user