mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 02:11:11 +02:00
- code formatting of "add option to adzap: zap on timer activation"
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -321,9 +321,9 @@ void CAdZapMenu::ShowMenu()
|
||||
#define ADZAP_ZAP_OPTION_COUNT 3
|
||||
const CMenuOptionChooser::keyval ADZAP_ZAP_OPTIONS[ADZAP_ZAP_OPTION_COUNT] =
|
||||
{
|
||||
{ SNeutrinoSettings::ADZAP_ZAP_OFF,LOCALE_ADZAP_ZAP_OFF},
|
||||
{ SNeutrinoSettings::ADZAP_ZAP_TO_LAST,LOCALE_ADZAP_ZAP_TO_LAST_CHANNEL},
|
||||
{ SNeutrinoSettings::ADZAP_ZAP_TO_START,LOCALE_ADZAP_ZAP_TO_START_CHANNEL},
|
||||
{ SNeutrinoSettings::ADZAP_ZAP_OFF, LOCALE_ADZAP_ZAP_OFF },
|
||||
{ SNeutrinoSettings::ADZAP_ZAP_TO_LAST, LOCALE_ADZAP_ZAP_TO_LAST_CHANNEL },
|
||||
{ SNeutrinoSettings::ADZAP_ZAP_TO_START, LOCALE_ADZAP_ZAP_TO_START_CHANNEL },
|
||||
};
|
||||
|
||||
bool show_monitor = monitorLifeTime.tv_sec;
|
||||
|
@@ -1250,16 +1250,19 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
|
||||
tmp_msg += g_Locale->getText(LOCALE_UNIT_SHORT_MINUTE);
|
||||
ShowMsg(LOCALE_ADZAP, tmp_msg, CMsgBox::mbrBack, CMsgBox::mbBack, NEUTRINO_ICON_INFO);
|
||||
|
||||
if(g_settings.adzap_zapOnActivation == SNeutrinoSettings::ADZAP_ZAP_TO_LAST)
|
||||
if (g_settings.adzap_zapOnActivation == SNeutrinoSettings::ADZAP_ZAP_TO_LAST)
|
||||
{
|
||||
CNeutrinoApp::getInstance()->channelList->numericZap(g_settings.key_lastchannel);
|
||||
else if(g_settings.adzap_zapOnActivation == SNeutrinoSettings::ADZAP_ZAP_TO_START){
|
||||
int mode = CNeutrinoApp::getInstance()->getMode();
|
||||
bool isRadioMode = (mode == NeutrinoModes::mode_radio || mode == NeutrinoModes::mode_webradio);
|
||||
const t_channel_id cur_channel_id = isRadioMode ? g_settings.startchannelradio_id : g_settings.startchanneltv_id;
|
||||
if(cur_channel_id != channel_id)
|
||||
CNeutrinoApp::getInstance()->channelList->zapTo_ChannelID(cur_channel_id, true);
|
||||
else
|
||||
CNeutrinoApp::getInstance()->channelList->numericZap(g_settings.key_lastchannel);
|
||||
}
|
||||
else if (g_settings.adzap_zapOnActivation == SNeutrinoSettings::ADZAP_ZAP_TO_START)
|
||||
{
|
||||
int mode = CNeutrinoApp::getInstance()->getMode();
|
||||
bool isRadioMode = (mode == NeutrinoModes::mode_radio || mode == NeutrinoModes::mode_webradio);
|
||||
const t_channel_id cur_channel_id = isRadioMode ? g_settings.startchannelradio_id : g_settings.startchanneltv_id;
|
||||
if (cur_channel_id != channel_id)
|
||||
CNeutrinoApp::getInstance()->channelList->zapTo_ChannelID(cur_channel_id, true);
|
||||
else
|
||||
CNeutrinoApp::getInstance()->channelList->numericZap(g_settings.key_lastchannel);
|
||||
}
|
||||
}
|
||||
//CTimerdClient timerdclient;
|
||||
|
Reference in New Issue
Block a user