feat: Remove TR# mixsrc when trainer disabled (#2323)
* feat: Remove TR# mixsrc when trainer disabled When trainer mode is not enabled, there is no point showing the TR# mixer sources. Once you enable a trainer option, they will become visible again. * fix: Add missing "Input" check for B&W radios * fix(cpn): Trainer mode default is off * chore(cpn): If trainer mode off, hide TR/PPM srcs * (cpn) Refresh all source lists on change of trainer mode Co-authored-by: elecpower <neilh713@tpg.com.au>
This commit is contained in:
co-authored by
elecpower
parent
41cfeee5b0
commit
3969b2b7e3
@@ -333,6 +333,9 @@ bool RawSource::isAvailable(const ModelData * const model, const GeneralSettings
|
||||
if (type == SOURCE_TYPE_VIRTUAL_INPUT && !model->isInputValid(index))
|
||||
return false;
|
||||
|
||||
if (type == SOURCE_TYPE_PPM && model->trainerMode == TRAINER_MODE_OFF)
|
||||
return false;
|
||||
|
||||
if (type == SOURCE_TYPE_CUSTOM_SWITCH && model->logicalSw[index].isEmpty())
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user