[gnome-sound-recorder] row:reduce all at same time
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder] row:reduce all at same time
- Date: Sat, 4 Jul 2020 15:54:51 +0000 (UTC)
commit 2680087e0b9e706cbac31a78e06af315db7be86b
Author: Kavan Mevada <kavanmevada gmail com>
Date: Sat Jul 4 19:11:08 2020 +0530
row:reduce all at same time
src/recordingsListBox.js | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/src/recordingsListBox.js b/src/recordingsListBox.js
index 765d697..7e003c2 100644
--- a/src/recordingsListBox.js
+++ b/src/recordingsListBox.js
@@ -23,9 +23,7 @@ var RecordingsListBox = new GObject.registerClass(class RecordingsListBox extend
this.activePlayingRow.setState(RowState.PAUSED);
player.play(recording.uri);
-
- if (!this.activePlayingRow || this.activePlayingRow !== _row)
- this.activePlayingRow = _row;
+ this.activePlayingRow = _row;
});
row.connect('pause', () => player.pause());
@@ -47,13 +45,11 @@ var RecordingsListBox = new GObject.registerClass(class RecordingsListBox extend
}
vfunc_row_activated(row) {
- if (this.activeRow)
+ if (this.activeRow && this.activeRow !== row)
this.activeRow._revealer.reveal_child = false;
row._revealer.reveal_child = !row._revealer.reveal_child;
-
- if (!this.activeRow || this.activeRow !== row)
- this.activeRow = row;
+ this.activeRow = row;
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]