mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
status/volume: Ignore capitalization for headphone detection
When we can't detect a headphone by form factor, we do a string match on the port name. A match on 'Headphone' isn't less likely to be valid than a match on 'headphone', so make sure we ignore capitalization. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2691>
This commit is contained in:
parent
2eb3aff92c
commit
b8dcf85cc8
1 changed files with 1 additions and 1 deletions
|
|
@ -319,7 +319,7 @@ class OutputStreamSlider extends StreamSlider {
|
|||
// of different identifiers for headphones, and I could
|
||||
// not find the complete list
|
||||
if (sink.get_ports().length > 0)
|
||||
return sink.get_port().port.includes('headphone');
|
||||
return sink.get_port().port.toLowerCase().includes('headphone');
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue