« get me outta code hell

Make InlineListPickerElement update screen - 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-09-15 18:15:56 -0300
committerFlorrie <towerofnix@gmail.com>2019-09-15 18:15:56 -0300
commitd013ad704f9aea12357690d05e2ced1482e5f903 (patch)
tree770cca84aab71f546d149c33ca05ab171fbeba2f
parent8053f12b63e272cc9119a30f9ddc480b5ea75641 (diff)
Make InlineListPickerElement update screen
m---------tui-lib0
-rw-r--r--ui.js3
2 files changed, 3 insertions, 0 deletions
diff --git a/tui-lib b/tui-lib
-Subproject 3f76094c554c23ee3519f41458a04d348f4f75a
+Subproject d8943db70aab7e7192040caaf0bbf02d5ddf429
diff --git a/ui.js b/ui.js
index f425048..972e139 100644
--- a/ui.js
+++ b/ui.js
@@ -1888,6 +1888,9 @@ class InlineListPickerElement extends FocusElement {
   get curValue() {
     return this.options[this.curIndex].value
   }
+
+  get curIndex() { return this.getDep('curIndex') }
+  set curIndex(v) { return this.setDep('curIndex', v) }
 }
 
 // Quite hacky, but ATM I can't think of any way to neatly tie getDep/setDep