« get me outta code hell

mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ui.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui.js b/ui.js
index 7b1d330..a7df2b3 100644
--- a/ui.js
+++ b/ui.js
@@ -298,7 +298,9 @@ class AppElement extends FocusElement {
     }
 
     this.player.on('printStatusLine', data => {
-      this.playbackInfoElement.updateProgress(data)
+      if (this.playingTrack) {
+        this.playbackInfoElement.updateProgress(data)
+      }
     })
 
     return true