     }
 
     func notPlaying() {
+        isPlaying = false
         hide(withDuration: 0.5)
     }
 
     func setTrack(_ track: Track) {
+        isPlaying = true
         titleLabel.stringValue = track.name.truncate(length: 32, trailing: "…")
         artistNameLabel.stringValue = track.artist.truncate(length: 32, trailing: "…")
     }

class RoscoView: NSVisualEffectView {
    @IBOutlet var titleLabel: NSTextField!
    @IBOutlet var artistNameLabel: NSTextField!

    required init?(coder: NSCoder) {
        super.init(coder: coder)

    }

    override func mouseExited(with _: NSEvent) {
        if (isPlaying) {
            show(withDuration: 0.2)
        }
    }
}
