« get me outta code hell

Remove unnecessary selectInput(main listing) - 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>2018-06-12 21:52:20 -0300
committerFlorrie <towerofnix@gmail.com>2018-06-12 21:52:22 -0300
commit007092f6b0e6ff6681ab7bec64eee5efed0c7ead (patch)
treea862928937bd099a0c67ce4878e39e14521ce15b
parentd5680c5f942b29d67a0e9ac10f7eded9b6f6b38c (diff)
Remove unnecessary selectInput(main listing)
Useful if clearQueue is called by some other function where it's not
expected to change the focus. The last commit already handles the queue
listing being empty, so this line isn't necessary to prevent a crash
anymore.
-rw-r--r--ui.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/ui.js b/ui.js
index 88d3eb0..2f7b010 100644
--- a/ui.js
+++ b/ui.js
@@ -171,7 +171,6 @@ class AppElement extends FocusElement {
   }
 
   clearQueue() {
-    this.form.selectInput(this.grouplikeListingElement)
     this.queueGrouplike.items = []
     this.queueListingElement.buildItems()
     this.queueListingElement.pathElement.showItem(null)