gui/update_settings.cpp: add option to enable/disable updates check on boot

This commit is contained in:
[CST] Focus
2014-10-20 14:20:26 +04:00
parent a755074c0e
commit c43438baec
5 changed files with 8 additions and 0 deletions

View File

@@ -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

View File

@@ -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);

View File

@@ -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,

View File

@@ -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",

View File

@@ -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;