neutrino.cpp: enable check for package updates with new setting

Origin commit data
------------------
Commit: 981f5d6f1f
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-04-10 (Sat, 10 Apr 2021)
This commit is contained in:
2021-04-10 22:14:39 +02:00
committed by vanhofen
parent e4de8c8f97
commit 012cc10695
4 changed files with 13 additions and 4 deletions

View File

@@ -39,6 +39,7 @@
#include <neutrino_menue.h>
#include <gui/filebrowser.h>
#include <gui/update_check.h>
#include <gui/opkg_manager.h>
#include <gui/update_ext.h>
#include <gui/update_settings.h>
#include <gui/widget/icons.h>
@@ -144,7 +145,8 @@ int CUpdateSettings::initMenu()
OnOffNotifier->addItem(apply_kernel);
#endif
CMenuOptionChooser *autocheck = new CMenuOptionChooser(LOCALE_FLASHUPDATE_AUTOCHECK, &g_settings.softupdate_autocheck, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, this);
CMenuOptionChooser *autocheck = new CMenuOptionChooser(LOCALE_FLASHUPDATE_AUTOCHECK, &g_settings.softupdate_autocheck, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, OnOffNotifier);
CMenuOptionChooser *package_autocheck = new CMenuOptionChooser("Package update check", &g_settings.softupdate_autocheck_packages, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, OnOffNotifier);
// apply_settings->setHint("", LOCALE_MENU_HINT_XXX);
w_upsettings.addItem(fw_update_dir);
@@ -158,7 +160,8 @@ int CUpdateSettings::initMenu()
#endif
#endif
w_upsettings.addItem(autocheck);
if (COPKGManager::hasOpkgSupport())
w_upsettings.addItem(package_autocheck);
#if 0
w_upsettings.addItem(apply_kernel);
#endif