« get me outta code hell

make the mtui menu work again! - 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:
authorFlorrie <towerofnix@gmail.com>2020-07-07 11:31:29 -0300
committerFlorrie <towerofnix@gmail.com>2020-07-07 11:34:03 -0300
commit0e0cb91ffc1e7a28a03428528d437e074145a72e (patch)
treec95de926af072736724bd8d500d12b2833700296 /ui.js
parentb7d4decd7c18352c02102156611a2a533a01e75c (diff)
make the mtui menu work again!
i forgot to implement menuItems. oops. :P
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.js b/ui.js
index 0bd512a..04c65c0 100644
--- a/ui.js
+++ b/ui.js
@@ -4175,7 +4175,7 @@ class Menubar extends ListScrollForm {
       button.on('pressed', () => {
         this.contextMenu = this.showContextMenu({
           x: container.absLeft, y: container.absY + 1,
-          items: menuFn
+          items: menuFn || menuItems
         })
         this.contextMenu.on('closed', () => {
           this.contextMenu = null