Skip to content

Commit 47ff6e8

Browse files
committed
Work around issue with replacing tracklist option
If you double-click the tracklist, it would duplicate with the refactor.
1 parent 34bd0d0 commit 47ff6e8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Submariner/SBTracklistController.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ import Cocoa
5656

5757
// #MARK: - IBActions
5858

59+
override func trackDoubleClick(_ sender: Any!) {
60+
// We have to override this because if the replace tracklist option is enabled,
61+
// it duplicates the tracklist
62+
SBPlayer.sharedInstance().play(index: self.selectedTrackRow)
63+
}
64+
5965
@IBAction func delete(_ sender: Any) {
6066
if playlistTableView.selectedRow != -1 {
6167
SBPlayer.sharedInstance().remove(trackIndexSet: playlistTableView.selectedRowIndexes)

0 commit comments

Comments
 (0)