Skip to content

Commit

Permalink
remove duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Nov 18, 2023
1 parent 605f34a commit 26cf351
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions source/Main.bs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 26cf351

Please sign in to comment.