mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-04 04:11:09 +02:00
neutrino: unify modes handling; ...
remove double enum from CNeutrinoApp and move mostly used enum from NeutrinoMessages to new NeutrinoModes
Origin commit data
------------------
Commit: 028ec3cf3c
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-20 (Mon, 20 Nov 2017)
Origin message was:
------------------
- neutrino: unify modes handling; ...
remove double enum from CNeutrinoApp and move mostly used enum from NeutrinoMessages to new NeutrinoModes
This commit is contained in:
@@ -135,17 +135,17 @@ void CMenuItem::disableByCondition(const menu_item_disable_cond_t& condition)
|
||||
int stb_mode = CNeutrinoApp::getInstance()->getMode();
|
||||
|
||||
if (condition & DCOND_MODE_TS){
|
||||
if (stb_mode == CNeutrinoApp::mode_ts)
|
||||
if (stb_mode == NeutrinoModes::mode_ts)
|
||||
if (initModeCondition(stb_mode))
|
||||
return;
|
||||
}
|
||||
if (condition & DCOND_MODE_RADIO){
|
||||
if (stb_mode == CNeutrinoApp::mode_radio)
|
||||
if (stb_mode == NeutrinoModes::mode_radio)
|
||||
if (initModeCondition(stb_mode))
|
||||
return;
|
||||
}
|
||||
if (condition & DCOND_MODE_TV){
|
||||
if (stb_mode == CNeutrinoApp::mode_tv)
|
||||
if (stb_mode == NeutrinoModes::mode_tv)
|
||||
if (initModeCondition(stb_mode))
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user