« 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.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