mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
- neutrino/miscsettings_menu: fix switching online-services
Conflicts: src/neutrino.cpp Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -686,30 +686,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