mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 23:42:51 +02:00
channellist: move zaphistory/current_transponder handling into sepatate function
Origin commit data
------------------
Branch: ni/coolstream
Commit: 8dbd41921a
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-03-22 (Thu, 22 Mar 2018)
Origin message was:
------------------
- channellist: move zaphistory/current_transponder handling into sepatate function
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1237,36 +1237,12 @@ void CChannelList::zapToChannel(CZapitChannel *channel, bool force)
|
||||
}
|
||||
}
|
||||
|
||||
/* Called only from "all" channel list */
|
||||
int CChannelList::numericZap(int key)
|
||||
int CChannelList::showLiveBouquet(int key)
|
||||
{
|
||||
int res = -1;
|
||||
if (showEmptyError())
|
||||
return res;
|
||||
|
||||
/*
|
||||
TODO?
|
||||
Move handling of key_zaphistory and key_current_transponder
|
||||
into sepatate functions?
|
||||
These keys do not zap numeric. Pseudo bouquets are shown.
|
||||
*/
|
||||
|
||||
// quickzap "0" to last seen channel
|
||||
if (key == g_settings.key_lastchannel)
|
||||
{
|
||||
t_channel_id channel_id = lastChList.getlast(1);
|
||||
if (channel_id && SameTP(channel_id))
|
||||
{
|
||||
lastChList.clear_storedelay(); // ignore store delay
|
||||
int new_mode = lastChList.get_mode(channel_id);
|
||||
if (new_mode >= 0)
|
||||
CNeutrinoApp::getInstance()->SetChannelMode(new_mode);
|
||||
zapTo_ChannelID(channel_id);
|
||||
res = 0;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
// zap history bouquet
|
||||
if (key == g_settings.key_zaphistory)
|
||||
{
|
||||
@@ -1323,7 +1299,33 @@ int CChannelList::numericZap(int key)
|
||||
return res;
|
||||
}
|
||||
|
||||
// real numeric zap
|
||||
return res;
|
||||
}
|
||||
|
||||
/* Called only from "all" channel list */
|
||||
int CChannelList::numericZap(int key)
|
||||
{
|
||||
int res = -1;
|
||||
if (showEmptyError())
|
||||
return res;
|
||||
|
||||
// quickzap "0" to last seen channel
|
||||
if (key == g_settings.key_lastchannel)
|
||||
{
|
||||
t_channel_id channel_id = lastChList.getlast(1);
|
||||
if (channel_id && SameTP(channel_id))
|
||||
{
|
||||
lastChList.clear_storedelay(); // ignore store delay
|
||||
int new_mode = lastChList.get_mode(channel_id);
|
||||
if (new_mode >= 0)
|
||||
CNeutrinoApp::getInstance()->SetChannelMode(new_mode);
|
||||
zapTo_ChannelID(channel_id);
|
||||
res = 0;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
// numeric zap
|
||||
size_t maxchansize = MaxChanNr().size();
|
||||
int fw = g_Font[SNeutrinoSettings::FONT_TYPE_CHANNEL_NUM_ZAP]->getMaxDigitWidth();
|
||||
int fh = g_Font[SNeutrinoSettings::FONT_TYPE_CHANNEL_NUM_ZAP]->getHeight();
|
||||
|
Reference in New Issue
Block a user