« 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
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:36 -0300
commitbefceed00ce677befe0ae9fa5122390e391207d4 (patch)
treed35629b7ec2ba02e716815a5d4d15effee3b8d12
parent8baf386abdf611acd855e61578f06cf7ac8f014f (diff)
replace existing empty tab when loading playlist
-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 {