webtv-setup: minor changes in changeNotify() function

Origin commit data
------------------
Commit: 1305b5d339
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-09-21 (Fri, 21 Sep 2018)

Origin message was:
------------------
- webtv-setup: minor changes in changeNotify() function
This commit is contained in:
vanhofen
2018-09-21 00:05:28 +02:00
parent 3cb1fa3957
commit 951ba3c5c8
2 changed files with 11 additions and 4 deletions

View File

@@ -209,10 +209,17 @@ int CWebTVSetup::Show()
}
//NI
bool CWebTVSetup::changeNotify(const neutrino_locale_t, void */*data*/)
bool CWebTVSetup::changeNotify(const neutrino_locale_t OptionName, void */*data*/)
{
changed = true;
return false;
int ret = menu_return::RETURN_NONE;
if (ARE_LOCALES_EQUAL(OptionName, LOCALE_WEBTV_XML_AUTO))
{
changed = true;
ret = menu_return::RETURN_REPAINT;
}
return ret;
}
//NI

View File

@@ -39,7 +39,7 @@ class CWebTVSetup : public CMenuTarget, CChangeObserver //NI
CWebTVSetup();
int exec(CMenuTarget* parent, const std::string & actionKey);
int Show();
bool changeNotify(const neutrino_locale_t, void * data); //NI
bool changeNotify(const neutrino_locale_t OptionName, void *data); //NI
void webtv_xml_auto(); //NI
bool webtv_xml_autodir(std::string directory);
};