Only download cover image when flag enabled (#780)

* Only download cover image when flag enabled

* fixup! Only download cover image when flag enabled
This commit is contained in:
Ronak Buch
2022-04-18 11:10:56 -04:00
committed by GitHub
parent 3d08f494f2
commit f981b64687

View File

@@ -274,7 +274,11 @@ impl Queue {
let notification_id = self.notification_id.clone();
std::thread::spawn({
let track_name = track.to_string();
let cover_url = track.cover_url();
let cover_url = if cfg!(feature = "cover") {
track.cover_url()
} else {
None
};
move || send_notification(&track_name, cover_url, notification_id)
});
}