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:
NeilClack
2026-07-12 18:16:18 -05:00
parent c98b84a3a8
commit e090870b4d
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -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