gui/bouquetlist.cpp: dont repaint, if mode not changed

This commit is contained in:
[CST] Focus
2012-07-16 17:18:41 +04:00
parent 9c3f281445
commit 5fabe3d425

View File

@@ -363,21 +363,25 @@ int CBouquetList::show(bool bShowChannelList)
loop=false; loop=false;
} }
else if(msg == CRCInput::RC_red || msg == CRCInput::RC_favorites) { else if(msg == CRCInput::RC_red || msg == CRCInput::RC_favorites) {
if (CNeutrinoApp::getInstance()->GetChannelMode() != LIST_MODE_FAV) {
CNeutrinoApp::getInstance()->SetChannelMode(LIST_MODE_FAV); CNeutrinoApp::getInstance()->SetChannelMode(LIST_MODE_FAV);
hide(); hide();
return -3; return -3;
}
} else if(msg == CRCInput::RC_green) { } else if(msg == CRCInput::RC_green) {
if (CNeutrinoApp::getInstance()->GetChannelMode() != LIST_MODE_PROV) {
CNeutrinoApp::getInstance()->SetChannelMode(LIST_MODE_PROV); CNeutrinoApp::getInstance()->SetChannelMode(LIST_MODE_PROV);
hide(); hide();
return -3; return -3;
}
} else if(msg == CRCInput::RC_yellow || msg == CRCInput::RC_sat) { } else if(msg == CRCInput::RC_yellow || msg == CRCInput::RC_sat) {
if(bShowChannelList) { if(bShowChannelList && CNeutrinoApp::getInstance()->GetChannelMode() != LIST_MODE_SAT) {
CNeutrinoApp::getInstance()->SetChannelMode(LIST_MODE_SAT); CNeutrinoApp::getInstance()->SetChannelMode(LIST_MODE_SAT);
hide(); hide();
return -3; return -3;
} }
} else if(msg == CRCInput::RC_blue) { } else if(msg == CRCInput::RC_blue) {
if(bShowChannelList) { if(bShowChannelList && CNeutrinoApp::getInstance()->GetChannelMode() != LIST_MODE_ALL) {
CNeutrinoApp::getInstance()->SetChannelMode(LIST_MODE_ALL); CNeutrinoApp::getInstance()->SetChannelMode(LIST_MODE_ALL);
hide(); hide();
return -3; return -3;