[gnome-sound-recorder/bilelmoussaoui/better-shortcuts: 8/11] recording: default duration to 0




commit 7a3ad45095b95929e5c7a9b167ab06907541a125
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]