mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CInfoViewer: use different modes with enums for virtual zap and number input mode
This should fix missing rounded corners in numbaur input mode too. Thx defans for input !
This commit is contained in:
@@ -2135,6 +2135,7 @@ void CNeutrinoApp::quickZap(int msg)
|
||||
void CNeutrinoApp::numericZap(int msg)
|
||||
{
|
||||
StopSubtitles();
|
||||
g_InfoViewer->setSwitchMode(CInfoViewer::IV_MODE_NUMBER_ZAP);
|
||||
int res = channelList->numericZap( msg );
|
||||
StartSubtitles(res < 0);
|
||||
if (res >= 0 && CRCInput::isNumeric(msg)) {
|
||||
@@ -2771,7 +2772,7 @@ int CNeutrinoApp::handleMsg(const neutrino_msg_t _msg, neutrino_msg_data_t data)
|
||||
}
|
||||
|
||||
/* ================================== KEYS ================================================ */
|
||||
if( msg == CRCInput::RC_ok || (!g_InfoViewer->virtual_zap_mode && (msg == CRCInput::RC_sat || msg == CRCInput::RC_favorites))) {
|
||||
if( msg == CRCInput::RC_ok || (!g_InfoViewer->getSwitchMode() && (msg == CRCInput::RC_sat || msg == CRCInput::RC_favorites))) {
|
||||
if( (mode == mode_tv) || (mode == mode_radio) || (mode == mode_ts) || (mode == mode_webtv)) {
|
||||
showChannelList(msg);
|
||||
return messages_return::handled;
|
||||
|
Reference in New Issue
Block a user