fix: SwitchDevice no longer passes 'system default' to SDL
- SwitchDevice: pass '' (empty string) for default device instead of 'system default' - Fixes 'Device restore path passes invalid device name to SDL' in changelog
This commit is contained in:
@@ -401,8 +401,9 @@ func SwitchDevice(newName string, cfg *db.AppConfig) error {
|
||||
// Log device switch attempt
|
||||
// Automatically defaults to "system default"
|
||||
oldDevice := CurrentDevice() // Which device is to be closed
|
||||
// SDL expects "" for default device, not "system default"
|
||||
if newName == "" { // Which device is being switched to?
|
||||
newName = "system default"
|
||||
newName = ""
|
||||
}
|
||||
|
||||
// Capture current state
|
||||
|
||||
Reference in New Issue
Block a user