[gnome-shell] Fix showing input volume
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Fix showing input volume
- Date: Wed, 20 Oct 2010 19:30:34 +0000 (UTC)
commit fe1a9c2b4b4fee9ccb7e523db1cd2cecca148e86
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Wed Oct 20 21:15:24 2010 +0200
Fix showing input volume
Fix two typos in code that decided whether to show input volume and
mute switch.
js/ui/status/volume.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/status/volume.js b/js/ui/status/volume.js
index 48cb6a3..8753c71 100644
--- a/js/ui/status/volume.js
+++ b/js/ui/status/volume.js
@@ -117,9 +117,9 @@ Indicator.prototype = {
// only show input widgets if any application is recording audio
let showInput = false;
let recordingApps = this._control.get_source_outputs();
- if (this._source && recordingApps) {
- for (let i = 0; i < recordingApp.length; i++) {
- let outputStream = recordingApp[i];
+ if (this._input && recordingApps) {
+ for (let i = 0; i < recordingApps.length; i++) {
+ let outputStream = recordingApps[i];
let id = outputStream.get_application_id();
// but skip gnome-volume-control and pavucontrol
// (that appear as recording because they show the input level)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]