mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
gui/update_settings.cpp: add option to enable/disable updates check on boot
This commit is contained in:
@@ -549,6 +549,7 @@ filesystem.is.utf8.option.iso8859.1 ISO-8859-1
|
|||||||
filesystem.is.utf8.option.utf8 UTF-8
|
filesystem.is.utf8.option.utf8 UTF-8
|
||||||
flashupdate.actionreadflash reading
|
flashupdate.actionreadflash reading
|
||||||
flashupdate.apply_settings Import current settings into new image?
|
flashupdate.apply_settings Import current settings into new image?
|
||||||
|
flashupdate.autocheck Auto-check updates on boot
|
||||||
flashupdate.cantopenfile can't open file
|
flashupdate.cantopenfile can't open file
|
||||||
flashupdate.cantopenmtd can't open MTD
|
flashupdate.cantopenmtd can't open MTD
|
||||||
flashupdate.checkupdate_internet Check for online updates
|
flashupdate.checkupdate_internet Check for online updates
|
||||||
|
@@ -146,6 +146,9 @@ int CUpdateSettings::initMenu()
|
|||||||
OnOffNotifier->addItem(apply_kernel);
|
OnOffNotifier->addItem(apply_kernel);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
CMenuOptionChooser *autocheck = new CMenuOptionChooser(LOCALE_FLASHUPDATE_AUTOCHECK, &g_settings.softupdate_autocheck, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, OnOffNotifier);
|
||||||
|
// apply_settings->setHint("", LOCALE_MENU_HINT_XXX);
|
||||||
|
|
||||||
w_upsettings.addItem(fw_update_dir);
|
w_upsettings.addItem(fw_update_dir);
|
||||||
w_upsettings.addItem(fw_url);
|
w_upsettings.addItem(fw_url);
|
||||||
w_upsettings.addItem(name_backup);
|
w_upsettings.addItem(name_backup);
|
||||||
@@ -154,6 +157,7 @@ int CUpdateSettings::initMenu()
|
|||||||
w_upsettings.addItem(apply_settings);
|
w_upsettings.addItem(apply_settings);
|
||||||
w_upsettings.addItem(name_apply);
|
w_upsettings.addItem(name_apply);
|
||||||
#endif
|
#endif
|
||||||
|
w_upsettings.addItem(autocheck);
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
w_upsettings.addItem(apply_kernel);
|
w_upsettings.addItem(apply_kernel);
|
||||||
|
@@ -576,6 +576,7 @@ typedef enum
|
|||||||
LOCALE_FILESYSTEM_IS_UTF8_OPTION_UTF8,
|
LOCALE_FILESYSTEM_IS_UTF8_OPTION_UTF8,
|
||||||
LOCALE_FLASHUPDATE_ACTIONREADFLASH,
|
LOCALE_FLASHUPDATE_ACTIONREADFLASH,
|
||||||
LOCALE_FLASHUPDATE_APPLY_SETTINGS,
|
LOCALE_FLASHUPDATE_APPLY_SETTINGS,
|
||||||
|
LOCALE_FLASHUPDATE_AUTOCHECK,
|
||||||
LOCALE_FLASHUPDATE_CANTOPENFILE,
|
LOCALE_FLASHUPDATE_CANTOPENFILE,
|
||||||
LOCALE_FLASHUPDATE_CANTOPENMTD,
|
LOCALE_FLASHUPDATE_CANTOPENMTD,
|
||||||
LOCALE_FLASHUPDATE_CHECKUPDATE_INTERNET,
|
LOCALE_FLASHUPDATE_CHECKUPDATE_INTERNET,
|
||||||
|
@@ -576,6 +576,7 @@ const char * locale_real_names[] =
|
|||||||
"filesystem.is.utf8.option.utf8",
|
"filesystem.is.utf8.option.utf8",
|
||||||
"flashupdate.actionreadflash",
|
"flashupdate.actionreadflash",
|
||||||
"flashupdate.apply_settings",
|
"flashupdate.apply_settings",
|
||||||
|
"flashupdate.autocheck",
|
||||||
"flashupdate.cantopenfile",
|
"flashupdate.cantopenfile",
|
||||||
"flashupdate.cantopenmtd",
|
"flashupdate.cantopenmtd",
|
||||||
"flashupdate.checkupdate_internet",
|
"flashupdate.checkupdate_internet",
|
||||||
|
@@ -548,6 +548,7 @@ struct SNeutrinoSettings
|
|||||||
std::string softupdate_proxyserver;
|
std::string softupdate_proxyserver;
|
||||||
std::string softupdate_proxyusername;
|
std::string softupdate_proxyusername;
|
||||||
std::string softupdate_proxypassword;
|
std::string softupdate_proxypassword;
|
||||||
|
int softupdate_autocheck;
|
||||||
int softupdate_name_mode_apply;
|
int softupdate_name_mode_apply;
|
||||||
int softupdate_name_mode_backup;
|
int softupdate_name_mode_backup;
|
||||||
int apply_settings;
|
int apply_settings;
|
||||||
|
Reference in New Issue
Block a user