« get me outta code hell

mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui.js b/ui.js
index f654ef8..e024eef 100644
--- a/ui.js
+++ b/ui.js
@@ -2572,6 +2572,7 @@ class PlaybackInfoElement extends DisplayElement {
     this.lenSecTotal = lenSecTotal
     this.volume = player.volume
     this.isLooping = player.isLooping
+    this.isPaused = player.isPaused
 
     this.progressBarLabel.text = '-'.repeat(Math.floor(this.w / lenSecTotal * curSecTotal))
     this.progressTextLabel.text = timeDone + ' / ' + duration
@@ -2615,6 +2616,8 @@ class PlaybackInfoElement extends DisplayElement {
   set volume(v) { return this.setDep('volume', v) }
   get isLooping() { return this.getDep('isLooping') }
   set isLooping(v) { return this.setDep('isLooping', v) }
+  get isPaused() { return this.getDep('isPaused') }
+  set isPaused(v) { return this.setDep('isPaused', v) }
 }
 
 class OpenPlaylistDialog extends Dialog {