forked from enlightenment/efl
elm/config: return false when setting audio config if multisense is disabled
Summary: these operations cannot be completed if the support is not built in, so return false in order to provide the correct state to the caller Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6839
This commit is contained in:
parent
1bdda117a1
commit
89c92726c4
|
@ -4968,7 +4968,11 @@ _efl_config_global_efl_config_config_set(Eo *obj EINA_UNUSED, void *_pd EINA_UNU
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
elm_config_audio_mute_set(chan, !!v);
|
elm_config_audio_mute_set(chan, !!v);
|
||||||
|
#ifdef ENABLE_MULTISENSE
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
|
#else
|
||||||
|
return EINA_FALSE;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
ERR("Config '%s' does not exist", name);
|
ERR("Config '%s' does not exist", name);
|
||||||
|
|
Loading…
Reference in New Issue