mirror of
https://github.com/csd4ni3l/soundboard.git
synced 2026-03-10 17:19:24 +01:00
Fix Windows cable input error handling
This commit is contained in:
@@ -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?")
|
||||||
|
|||||||
Reference in New Issue
Block a user