diff options
author | Florian Müllner <fmuellner@gnome.org> | 2023-03-12 22:55:45 +0100 |
---|---|---|
committer | Marge Bot <marge-bot@gnome.org> | 2023-04-21 18:53:00 +0000 |
commit | b8dcf85cc85063baf9eaf5d3a319da1a262c9a85 (patch) | |
tree | 1f7f4c2e47405e1a798066c95fa238bb46efbe33 | |
parent | 2eb3aff92ce76b7e7f59817d94cd33af90209b7f (diff) | |
download | gnome-shell-b8dcf85cc85063baf9eaf5d3a319da1a262c9a85.tar.gz |
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>
-rw-r--r-- | js/ui/status/volume.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/ui/status/volume.js b/js/ui/status/volume.js index fd6c8e7d6..91706343a 100644 --- a/js/ui/status/volume.js +++ b/js/ui/status/volume.js @@ -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; } |