mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
neutrino/miscsettings_menu: fix switching online-services
Origin commit data
------------------
Branch: ni/coolstream
Commit: 9ed421c9aa
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-01-21 (Sun, 21 Jan 2018)
Origin message was:
------------------
- neutrino/miscsettings_menu: fix switching online-services
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -726,30 +726,30 @@ bool CMiscMenue::changeNotify(const neutrino_locale_t OptionName, void * /*data*
|
||||
#endif
|
||||
else if (ARE_LOCALES_EQUAL(OptionName, LOCALE_TMDB_API_KEY))
|
||||
{
|
||||
g_settings.tmdb_enabled = check_tmdb_api_key();
|
||||
g_settings.tmdb_enabled = g_settings.tmdb_enabled && check_tmdb_api_key();
|
||||
if (g_settings.tmdb_enabled)
|
||||
tmdb_api_key_short = g_settings.tmdb_api_key.substr(0, 8) + "...";
|
||||
else
|
||||
tmdb_api_key_short.clear();
|
||||
tmdb_onoff->setActive(g_settings.tmdb_enabled);
|
||||
tmdb_onoff->setActive(check_tmdb_api_key());
|
||||
}
|
||||
else if (ARE_LOCALES_EQUAL(OptionName, LOCALE_YOUTUBE_DEV_ID))
|
||||
{
|
||||
g_settings.youtube_enabled = check_youtube_dev_id();
|
||||
g_settings.youtube_enabled = g_settings.youtube_enabled && check_youtube_dev_id();
|
||||
if (g_settings.youtube_enabled)
|
||||
youtube_dev_id_short = g_settings.youtube_dev_id.substr(0, 8) + "...";
|
||||
else
|
||||
youtube_dev_id_short.clear();
|
||||
youtube_onoff->setActive(g_settings.youtube_enabled);
|
||||
youtube_onoff->setActive(check_youtube_dev_id());
|
||||
}
|
||||
else if (ARE_LOCALES_EQUAL(OptionName, LOCALE_SHOUTCAST_DEV_ID))
|
||||
{
|
||||
g_settings.shoutcast_enabled = check_shoutcast_dev_id();
|
||||
g_settings.shoutcast_enabled = g_settings.shoutcast_enabled && check_shoutcast_dev_id();
|
||||
if (g_settings.shoutcast_enabled)
|
||||
shoutcast_dev_id_short = g_settings.shoutcast_dev_id.substr(0, 8) + "...";
|
||||
else
|
||||
shoutcast_dev_id_short.clear();
|
||||
shoutcast_onoff->setActive(g_settings.shoutcast_enabled);
|
||||
shoutcast_onoff->setActive(check_shoutcast_dev_id());
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user