only display whisper settings if built with feature

This commit is contained in:
galister 2026-07-03 19:21:59 +09:00
parent 893df87dec
commit 37a161c489
4 changed files with 9 additions and 1 deletions

View File

@ -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)?;

View File

@ -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,
}
}

View File

@ -47,6 +47,7 @@ pub enum RecenterMode {
pub struct InterfaceFeats {
pub openxr: bool,
pub monado: bool,
pub whisper: bool,
}
pub trait DashInterface<T> {

View File

@ -240,6 +240,7 @@ impl DashInterface<()> for DashInterfaceEmulated {
dash_interface::InterfaceFeats {
openxr: true,
monado: true,
whisper: true,
}
}