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



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]