Fix Windows cable input error handling

This commit is contained in:
csd4ni3l
2026-02-17 19:01:39 +01:00
parent b241117813
commit 4a21f60ee6

View File

@@ -56,10 +56,12 @@ pub fn create_virtual_mic_windows() -> (OutputStream, OutputStream) {
.ok() .ok()
.map(|name| name.contains("CABLE Input") || name.contains("VB-Audio")) .map(|name| name.contains("CABLE Input") || name.contains("VB-Audio"))
.unwrap_or(false) .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() MessageDialog::new()
.set_title("VB Cable Driver not installed.") .set_title("VB Cable Driver not installed.")
.set_description("Could not access VB Cable output device. Is VB Cable Driver installed?") .set_description("Could not access VB Cable output device. Is VB Cable Driver installed?")