From 26cf3517f853a089cafaca945d449a3ee84aa7bf Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Sat, 18 Nov 2023 17:59:22 -0500 Subject: [PATCH] remove duplicate code --- source/Main.bs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/source/Main.bs b/source/Main.bs index b2e750439..957259efa 100644 --- a/source/Main.bs +++ b/source/Main.bs @@ -160,9 +160,6 @@ sub Main (args as dynamic) as void ' can't play the item without knowing what type it is if isValid(itemType) - if not isValid(m.scene) - m.scene = m.top.getScene() - end if startMediaLoadingSpinner() m.global.queueManager.callFunc("clear") ' empty queue/playlist m.global.queueManager.callFunc("resetShuffle") ' turn shuffle off @@ -219,9 +216,6 @@ sub Main (args as dynamic) as void ' If you select a library from ANYWHERE, follow this flow selectedItem = msg.getData() if isValid(selectedItem) - if not isValid(m.scene) - m.scene = m.top.getScene() - end if startMediaLoadingSpinner() selectedItemType = selectedItem.type