From 38590d9cfbe6a2d2de1bc18cde700d32b4c1c15d Mon Sep 17 00:00:00 2001 From: Aleksander Date: Sun, 2 Aug 2026 22:47:45 +0200 Subject: [PATCH] bugfix: whisper options do not show up in vr --- wayvr/src/state.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/wayvr/src/state.rs b/wayvr/src/state.rs index c4335a3a..e03b17cb 100644 --- a/wayvr/src/state.rs +++ b/wayvr/src/state.rs @@ -100,7 +100,7 @@ impl AppState { pub fn from_graphics( gfx: Arc, gfx_extras: WGfxExtras, - feats: InterfaceFeats, + mut feats: InterfaceFeats, ) -> anyhow::Result { // insert shared resources let mut tasks = TaskContainer::new(); @@ -194,6 +194,11 @@ impl AppState { let executor = wlx_common::async_executor::create_local(); + #[cfg(feature = "whisper")] + { + feats.whisper = true; + } + let mut app_state = Self { tasks, gfx, @@ -211,7 +216,7 @@ impl AppState { &lang_provider, &WguiFontConfig::default(), get_config_file_path(&theme_path), - load_palette(&*session.config.color_palette), + load_palette(&session.config.color_palette), )?, wgui_theme: Rc::new(theme), executor,