1
1
mirror of https://github.com/danbee/persephone synced 2025-03-04 08:39:11 +00:00

Ensure the album play button never sticks around

This commit is contained in:
Daniel Barber 2019-03-06 17:21:02 -05:00
parent 30ca11fce4
commit 92366ac795
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -40,6 +40,19 @@ class AlbumItemView: NSView {
name: NSScrollView.willStartLiveScrollNotification,
object: nil
)
NotificationCenter.default.addObserver(
self,
selector: #selector(viewWillScroll(_:)),
name: NSScrollView.didLiveScrollNotification,
object: nil
)
}
override func prepareForReuse() {
super.prepareForReuse()
hidePlayButton()
}
@objc func viewWillScroll(_ notification: Notification) {