[gnome-sound-recorder/bilelmoussaoui/better-shortcuts] recording: default duration to 0
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder/bilelmoussaoui/better-shortcuts] recording: default duration to 0
- Date: Wed, 9 Sep 2020 14:58:30 +0000 (UTC)
commit 42537246a342c1c41d623efe0904d744117a52a9
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date: Wed Sep 9 15:44:54 2020 +0200
recording: default duration to 0
to avoid displaying Nan:Nan:Nan in case
we can't fetch the duration for whatever case
src/recording.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/recording.js b/src/recording.js
index ac3ac3e..43ebb09 100644
--- a/src/recording.js
+++ b/src/recording.js
@@ -80,7 +80,7 @@ var Recording = new GObject.registerClass({
if (this._duration)
return this._duration;
else
- return undefined;
+ return 0;
}
get file() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]