Skip to content

Commit

Permalink
Update selection in tracklist
Browse files Browse the repository at this point in the history
So that the favourite menu option works.

This has the side effect of selecting it in the inspector, but this
might be desirable. The tracklist and inspector are mutually exclusive
anyhow.
  • Loading branch information
NattyNarwhal committed Jun 19, 2024
1 parent ef8bbe0 commit 7f828e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Submariner/SBTracklistController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ import Cocoa
return true
}

func tableViewSelectionDidChange(_ notification: Notification) {
NotificationCenter.default.post(name: .SBTrackSelectionChanged, object: selectedTracks)
}

// #MARK: - UI Validator

func validateUserInterfaceItem(_ item: NSValidatedUserInterfaceItem) -> Bool {
Expand Down

0 comments on commit 7f828e1

Please sign in to comment.