« get me outta code hell

replace existing empty tab when loading playlist - 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-09 16:35:06 -0300
committerFlorrie <towerofnix@gmail.com>2020-07-09 16:35:06 -0300
commit580f427cbf549bbb3943d85465901a995acebb0f (patch)
tree7bdfc1a514470e7a38afd1d0bce9b20cd0d6bdb2 /ui.js
parentb07f167f86106200ed5ae4ce545c364490d4f397 (diff)
replace existing empty tab when loading playlist
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 41ab4cc..f333b7a 100644
--- a/ui.js
+++ b/ui.js
@@ -1124,7 +1124,7 @@ class AppElement extends FocusElement {
 
     grouplike = await processSmartPlaylist(grouplike)
 
-    if (newTab || !this.tabber.currentElement) {
+    if (!this.tabber.currentElement || newTab && this.tabber.currentElement.grouplike) {
       const grouplikeListing = this.newGrouplikeListing()
       grouplikeListing.loadGrouplike(grouplike)
     } else {