From e032363501575f78dfa6a9f3b41cdede3bedef1f Mon Sep 17 00:00:00 2001 From: galister <22305755+galister@users.noreply.github.com> Date: Fri, 3 Jul 2026 19:21:59 +0900 Subject: [PATCH] only display whisper settings if built with feature --- dash-frontend/src/tab/settings/tab_features.rs | 4 +++- wayvr/src/overlays/dashboard.rs | 4 ++++ wlx-common/src/dash_interface.rs | 1 + wlx-common/src/dash_interface_emulated.rs | 1 + 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/dash-frontend/src/tab/settings/tab_features.rs b/dash-frontend/src/tab/settings/tab_features.rs index bac00ca4..c6d0d01b 100644 --- a/dash-frontend/src/tab/settings/tab_features.rs +++ b/dash-frontend/src/tab/settings/tab_features.rs @@ -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)?; diff --git a/wayvr/src/overlays/dashboard.rs b/wayvr/src/overlays/dashboard.rs index e082eded..bcd5f316 100644 --- a/wayvr/src/overlays/dashboard.rs +++ b/wayvr/src/overlays/dashboard.rs @@ -563,6 +563,10 @@ impl DashInterface 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, } } diff --git a/wlx-common/src/dash_interface.rs b/wlx-common/src/dash_interface.rs index f188b286..298b1220 100644 --- a/wlx-common/src/dash_interface.rs +++ b/wlx-common/src/dash_interface.rs @@ -47,6 +47,7 @@ pub enum RecenterMode { pub struct InterfaceFeats { pub openxr: bool, pub monado: bool, + pub whisper: bool, } pub trait DashInterface { diff --git a/wlx-common/src/dash_interface_emulated.rs b/wlx-common/src/dash_interface_emulated.rs index 919054dd..376513d4 100644 --- a/wlx-common/src/dash_interface_emulated.rs +++ b/wlx-common/src/dash_interface_emulated.rs @@ -240,6 +240,7 @@ impl DashInterface<()> for DashInterfaceEmulated { dash_interface::InterfaceFeats { openxr: true, monado: true, + whisper: true, } }