[gnome-sound-recorder] application.js, listview.js: Code cleanup
- From: Meg Ford (Margaret) <megford src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder] application.js, listview.js: Code cleanup
- Date: Wed, 7 May 2014 02:01:16 +0000 (UTC)
commit 9aa12eed93e63c888dbf94c86c4fe434b7fd850d
Author: Meg Ford <megford gnome org>
Date: Tue May 6 20:57:29 2014 -0500
application.js, listview.js: Code cleanup
Code cleanup, plus remove paste from middle-click/scroll mouse buggy-ness
src/application.js | 5 ++---
src/listview.js | 5 ++---
2 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 6907a0c..fc2e4e8 100644
--- a/src/application.js
+++ b/src/application.js
@@ -98,7 +98,6 @@ const Application = new Lang.Class({
onWindowDestroy: function() {
if (MainWindow.wave.pipeline)
MainWindow.wave.pipeline.set_state(Gst.State.NULL);
- media-type-preset
if (MainWindow._record.pipeline)
MainWindow._record.pipeline.set_state(Gst.State.NULL);
@@ -124,7 +123,7 @@ const Application = new Lang.Class({
settings.set_int("media-type-preset", profileName);
},
- getMicVolume: function(level) {
+ getMicVolume: function() {
let micVolLevel = settings.get_double("mic-volume");
return micVolLevel;
},
@@ -133,7 +132,7 @@ const Application = new Lang.Class({
settings.set_double("mic-volume", level);
},
- getSpeakerVolume: function(level) {
+ getSpeakerVolume: function() {
let speakerVolLevel = settings.get_double("speaker-volume");
return speakerVolLevel;
},
diff --git a/src/listview.js b/src/listview.js
index 5596013..a700195 100644
--- a/src/listview.js
+++ b/src/listview.js
@@ -300,13 +300,12 @@ const Listview = new Lang.Class({
allFilesInfo[this.idx].mediaType = mediaTypeMap.FLAC;
} else {
-
if (allFilesInfo[this.idx].mediaType == null) {
// Remove the file from the array if we don't recognize it
allFilesInfo.splice(this.idx, 1);
- this.endIdx = this.endIdx - 1;
+ this.endIdx = this.endIdx;
}
- }
+ }
},
capTypes: function(capString) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]