« get me outta code hell

Fix path element not being filled on startup - 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>2018-06-07 21:39:48 -0300
committerFlorrie <towerofnix@gmail.com>2018-06-07 21:39:48 -0300
commite6c17263e97c6a47bca7e22ca4bb7119363ada35 (patch)
tree9b374d29d0b5b42234dc4077aa62302993c5c8d2 /ui.js
parent3616a42cfb863cbf3a0845af3af3ac70430119d3 (diff)
Fix path element not being filled on startup
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui.js b/ui.js
index b550070..32cbb72 100644
--- a/ui.js
+++ b/ui.js
@@ -461,6 +461,10 @@ class GrouplikeListingElement extends ListScrollForm {
       }
     }
 
+    // Just to make the selected-track-info bar fill right away (if it wasn't
+    // already filled by a previous this.curIndex set).
+    this.curIndex = this.curIndex
+
     this.fixLayout()
   }