« get me outta code hell

Backendify playback info element controls - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2019-07-06 14:03:38 -0300
committerFlorrie <towerofnix@gmail.com>2019-07-06 14:03:38 -0300
commit86a94ba5c7e52a3291b0ae38fb5c6fa0a834b8d2 (patch)
treee786940cfeb575a1cab47338047236f294d4adbe
parent2487c806b3ca2f4a9ab25bc24f55efbfccc02bfb (diff)
Backendify playback info element controls
Oops!
-rw-r--r--ui.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui.js b/ui.js
index 2ec13fa..f72ec1e 100644
--- a/ui.js
+++ b/ui.js
@@ -205,9 +205,9 @@ class AppElement extends FocusElement {
     this.playbackInfoElement = new PlaybackInfoElement()
     this.playbackPane.addChild(this.playbackInfoElement)
 
-    this.playbackInfoElement.on('seek back', () => this.seekBack(5))
-    this.playbackInfoElement.on('seek ahead', () => this.seekAhead(5))
-    this.playbackInfoElement.on('toggle pause', () => this.togglePause())
+    this.playbackInfoElement.on('seek back', () => this.backend.seekBack(5))
+    this.playbackInfoElement.on('seek ahead', () => this.backend.seekAhead(5))
+    this.playbackInfoElement.on('toggle pause', () => this.backend.togglePause())
 
     // Dialogs