Skip to content

Commit b03a2e6

Browse files
committed
Make album/track labels selectable.
1 parent 1c795c6 commit b03a2e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Spotiqueue/AppDelegate.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@ class AppDelegate: NSObject, NSApplicationDelegate {
244244
self.queueTableView.nextKeyView = self.searchField
245245
self.window.makeFirstResponder(self.searchField)
246246

247+
self.albumTitleLabel.isSelectable = true
248+
self.trackTitleLabel.isSelectable = true
249+
247250
// I choose to check whether we're authorised here, because if we aren't pasting will result in a bunch of ugly URI entries in the queue. They work, but meh. The way around this would be to observe the auth-state of self.spotify, and only try loading the queue from UserDefaults at that point, but honestly having a queue saved but not being authorised is a bit of an edge-case. Queue isn't valuable, you can rebuild it or save it in a playlist if you really care to.
248251
if self.spotify.isAuthorized,
249252
let savedQueuedTracks = UserDefaults.standard.string(forKey: "queuedTracks")

0 commit comments

Comments
 (0)