mirror of https://github.com/wayvr-org/wayvr.git
only display whisper settings if built with feature
This commit is contained in:
parent
893df87dec
commit
37a161c489
|
|
@ -139,7 +139,9 @@ impl State {
|
|||
|
||||
let c = options_category(par.mp, par.id_parent, "APP_SETTINGS.FEATURES", "dashboard/options.svg")?;
|
||||
|
||||
whisper_models_dropdown(par.mp, c)?;
|
||||
if par.feats.whisper {
|
||||
whisper_models_dropdown(par.mp, c)?;
|
||||
}
|
||||
|
||||
options_checkbox(par.mp, c, SettingType::NotificationsEnabled)?;
|
||||
options_checkbox(par.mp, c, SettingType::NotificationsSoundEnabled)?;
|
||||
|
|
|
|||
|
|
@ -563,6 +563,10 @@ impl DashInterface<AppState> for DashInterfaceLive {
|
|||
monado: data.monado_state.is_some(),
|
||||
#[cfg(not(feature = "openxr"))]
|
||||
monado: false,
|
||||
#[cfg(feature = "whisper")]
|
||||
whisper: true,
|
||||
#[cfg(not(feature = "whisper"))]
|
||||
whisper: false,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ pub enum RecenterMode {
|
|||
pub struct InterfaceFeats {
|
||||
pub openxr: bool,
|
||||
pub monado: bool,
|
||||
pub whisper: bool,
|
||||
}
|
||||
|
||||
pub trait DashInterface<T> {
|
||||
|
|
|
|||
|
|
@ -240,6 +240,7 @@ impl DashInterface<()> for DashInterfaceEmulated {
|
|||
dash_interface::InterfaceFeats {
|
||||
openxr: true,
|
||||
monado: true,
|
||||
whisper: true,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue