CNeutrinoApp: rework switch handling for channallist paint

In some cases it is advantageous if you can override paint of channellist,
e.g. if RC_ok is shared with other window handlers.
In such cases will so could be avoided.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 0d6f0a8c88
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-03-01 (Sun, 01 Mar 2015)

Origin message was:
------------------
CNeutrinoApp: rework switch handling for channallist paint

In some cases it is advantageous if you can override paint of channellist,
e.g. if RC_ok is shared with other window handlers.
In such cases will so could be avoided.


------------------
This commit was generated by Migit
This commit is contained in:
2015-03-01 22:58:33 +01:00
parent 31de47022f
commit 08dc57ea99
2 changed files with 18 additions and 6 deletions

View File

@@ -233,7 +233,8 @@ CNeutrinoApp::CNeutrinoApp()
favorites_changed = false;
bouquets_changed = false;
channels_init = false;
channellist_visible = false;
channelList_allowed = true;
channelList_painted = false;
}
/*-------------------------------------------------------------------------------------
@@ -2490,10 +2491,18 @@ void CNeutrinoApp::RealRun(CMenuWidget &mainMenu)
int CNeutrinoApp::showChannelList(const neutrino_msg_t _msg, bool from_menu)
{
/* Exit here if paint of channlellist is not allowed, disallow could be possible, eg: if
* RC_ok or other stuff is shared with other window handlers and
* it's easy here to disable channellist paint if required!
*/
if (!channelList_allowed){
channelList_allowed = true;
return menu_return::RETURN_NONE;
}
channelList_painted = false;
neutrino_msg_t msg = _msg;
InfoClock->enableInfoClock(false);
channellist_visible = true;
StopSubtitles();
//_show:
@@ -2582,7 +2591,8 @@ _repeat:
SetChannelMode(LIST_MODE_FAV);
}
channellist_visible = false;
channelList_painted = true;
if (!from_menu)
InfoClock->enableInfoClock(true);