mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
code formatting of "add option to adzap: zap on timer activation"
Origin commit data
------------------
Branch: ni/coolstream
Commit: d48072967e
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-04-28 (Sun, 28 Apr 2019)
Origin message was:
------------------
- code formatting of "add option to adzap: zap on timer activation"
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1278,16 +1278,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