From 4a21f60ee6fb5a0d9e87d9e71462d97c0880cade Mon Sep 17 00:00:00 2001 From: csd4ni3l Date: Tue, 17 Feb 2026 19:01:39 +0100 Subject: [PATCH] Fix Windows cable input error handling --- src/windows_lib.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/windows_lib.rs b/src/windows_lib.rs index 4a655d6..bd4c357 100644 --- a/src/windows_lib.rs +++ b/src/windows_lib.rs @@ -56,10 +56,12 @@ pub fn create_virtual_mic_windows() -> (OutputStream, OutputStream) { .ok() .map(|name| name.contains("CABLE Input") || name.contains("VB-Audio")) .unwrap_or(false) - }) - .unwrap_or("Not installed"); + }); - if virtual_mic == "Not installed" { + if let Some(virtual_mic) = virtual_mic { + // nothing, let Some doesnt support ! + } + else { MessageDialog::new() .set_title("VB Cable Driver not installed.") .set_description("Could not access VB Cable output device. Is VB Cable Driver installed?")