mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 23:42:51 +02:00
update_settings.cpp: split statement for update settings notify
Avoid double action
Origin commit data
------------------
Branch: ni/coolstream
Commit: e553e427a9
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-04-12 (Mon, 12 Apr 2021)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -199,20 +199,19 @@ int CUpdateSettings::initMenu()
|
||||
|
||||
bool CUpdateSettings::changeNotify(const neutrino_locale_t OptionName, void * /* data */)
|
||||
{
|
||||
if (ARE_LOCALES_EQUAL(OptionName, LOCALE_FLASHUPDATE_AUTOCHECK) || ARE_LOCALES_EQUAL(OptionName, LOCALE_FLASHUPDATE_AUTOCHECK_PACKAGES))
|
||||
if (ARE_LOCALES_EQUAL(OptionName, LOCALE_FLASHUPDATE_AUTOCHECK))
|
||||
{
|
||||
CFlashUpdateCheck::getInstance()->stopThread();
|
||||
if (g_settings.softupdate_autocheck)
|
||||
CFlashUpdateCheck::getInstance()->startThread();
|
||||
}
|
||||
#if ENABLE_PKG_MANAGEMENT
|
||||
CUpdateCheck::getInstance()->stopTimer();
|
||||
if (g_settings.softupdate_autocheck)
|
||||
CUpdateCheck::getInstance()->startThread();
|
||||
if (ARE_LOCALES_EQUAL(OptionName, LOCALE_FLASHUPDATE_AUTOCHECK_PACKAGES))
|
||||
{
|
||||
CUpdateCheckPackages::getInstance()->stopTimer();
|
||||
if (g_settings.softupdate_autocheck_packages)
|
||||
CUpdateCheckPackages::getInstance()->startThread();
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
@@ -3150,7 +3150,6 @@ TIMER_STOP("################################## after all #######################
|
||||
delete hintBox;
|
||||
#endif
|
||||
CFlashUpdateCheck::getInstance()->startThread();
|
||||
//CUpdateCheck::getInstance()->startThread();
|
||||
}
|
||||
#if ENABLE_PKG_MANAGEMENT
|
||||
if (g_settings.softupdate_autocheck_packages)
|
||||
|
Reference in New Issue
Block a user